0

Why we use static key word in. Main method?

public static void main String(arg[ ])

31st Jul 2017, 4:11 AM
JRaj Fx
JRaj Fx - avatar
5 odpowiedzi
+ 2
Static means that the Function is a function that can be accessed from outside the class without setting it as an instance. The JVM should be able to access the main method from outside the program to make it work. https://code.sololearn.com/cYIUAWE6PLRE/?ref=app
31st Jul 2017, 5:25 AM
Limitless
Limitless - avatar
+ 1
thank you now i am cleared
31st Jul 2017, 5:48 AM
JRaj Fx
JRaj Fx - avatar
+ 1
Yes it should be strictly Static
31st Jul 2017, 6:00 AM
Limitless
Limitless - avatar
0
is main method has strictly use static ?
31st Jul 2017, 5:59 AM
JRaj Fx
JRaj Fx - avatar
0
ok thak you
31st Jul 2017, 6:01 AM
JRaj Fx
JRaj Fx - avatar