+ 3
Why main class should always be static?
4 Respuestas
+ 6
If it were non-static method, jvm creats object first then call main() method that will lead to the problem of extra memory allocation.
+ 1
since execution of program starts from the main method.
static methods doesn't require objects to call them
+ 1
to called without instantiate
0
w1rr 0yjl97q