Home TechnologyProgrammingJava Subscribe to RSS

How Can I Change The Main Method Name In My Java Program?

Answer Question

1 Answer - Sort by: Date | Rating

    You can not change the main method name in Java.
    If you change the main method compiler throws an error saying that main method not found. But you can change the string array name compiler will accept it. Even if you can write it as static public void  
    main(string rags[]) and you can't change string data type to any other data type also. You can't change the return type also.
    1 0

    Sridhery 

    answered 3 years ago

      Answer Question - Answers are editable for 5 min.

      If you do not Sign-in or Register your answers will

      be anonymous, your answers may also be

      checked before going online.

      0

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International