1.

Why Is The Main Method Declared Static?

Answer»

main method is CALLED by the JVM even before the instantiation of the class HENCE it is DECLARED as static.

main method is called by the JVM even before the instantiation of the class hence it is declared as static.



Discussion

No Comment Found