+ 6
Static keyword allows the main() method to b called without having to create an object. It is necessary to use static in main() because main() is the first function that is called by the java interpreter and at that time no objects are made.
16th Apr 2017, 9:59 PM
Shraddha
Shraddha - avatar