+ 1

What is the use of static in main here

u just tell

24th Dec 2017, 5:42 AM
Shreya Mishra
Shreya Mishra - avatar
3 ответов
+ 2
I assume it is Java, As java is an OOP language it means main function belongs to the class it self, not the object
24th Dec 2017, 5:54 AM
MrCoder
MrCoder - avatar
+ 1
That means you don't have to create instance (object) for that Method to be used. As in java we nee to create the object first in order to use it that is what object oriented is.
30th Dec 2017, 5:42 AM
Raviraj Gardi
Raviraj Gardi - avatar
- 2
u just yea
24th Dec 2017, 3:11 PM
Diego Martinez