+1 vote
by (876 points)

1 Answer

0 votes
by (1.1k points)
Java's main() method is always static, so that compiler can call it without the creation of an object or before the creation of an object of the class. So, the compiler needs to call the main() method. If the main() is allowed to be non-static, then while calling the main() method JVM has to instantiate its class.
Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
...