0

What is the meaning of static in public static void main?

As i read static means that it stores that thing in one memory location only but i coudn't understand the reason behind using it in main function. I read so many answers online but seriously saying i coudn't understand anything somewhere it is written something other place something else. can someone please guide me.

22nd Mar 2017, 1:41 PM
pranjal kumar
pranjal kumar - avatar
3 ответов
+ 6
No object needed to call that method
22nd Mar 2017, 2:43 PM
Meharban Singh
Meharban Singh - avatar
+ 3
Static, defines the method as static, what means that you don't need to instantiate the class for call the method
22nd Mar 2017, 2:00 PM
Gabriel Sobral
Gabriel Sobral - avatar
0
if you declared as static you don't need to create an object to method.so here we are not creating an object to main method that's why we are using static..
23rd Mar 2017, 1:37 AM
Ranjith Gandhasiri
Ranjith Gandhasiri - avatar