Home » Interview » Technology

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

← Previous Question Next Question→

Discussion & Comments

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