Can we overload main method ?

Comments

  • Yes, you can overload main method in Java. But the program doesn't execute the overloaded main method when you run your program, you have to call the overloaded main method from the actual main method.
Sign In or Register to comment.