Quality Testing

Quality is delighting customers

The main method in Java is not an extraterrestrial method. Apart from the fact that main() is like any other method and can be overloaded in a similar way, JVM always looks for the method signature to start the program. 

Views: 16

Reply to This

Replies to This Discussion

yes main() method can be overloaded in java program , jvm will execute main(String [] args)  method  by default

As per practices of software testing company, the Main method in Java can be overloaded, But JVM always call the original main method, it will never call overloaded main method. The main method should not be static as the static method cannot be overridden in Java.

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service