Why main method is static in Java?



Suraj Said

+0 -0

"main" method is always static in Java because while running Program JVM (Java Virtual Machine) don't have any object to call "main" method and to start the program we need static method because it's have a property that we can call static method by using class name and without any object.



Submit Your Response