Why is the main() method declared static?

Correct Answer: main() method is called by the JVM even before the instantiation of the class, hence it is declared as static

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion