+ 1
java class and main method.
in java, why main method shud be outside class and shud be used from another class? explain in simple language .. if possible, give example from real world..
2 odpowiedzi
+ 17
u can use it from the the same class also
//make only 1 class
+ 3
its our choice to use main in outside class.