Question
Can we put more than one main method in single class?
Answer
Yes we can, by overloading the main method. But JVM will by default run the main method with string array as an argument.
Can we put more than one main method in single class?
Yes we can, by overloading the main method. But JVM will by default run the main method with string array as an argument.