0
How do you what point in your java code must you add a main method() ?
2 odpowiedzi
+ 2
No matter where you place the main method, it will always run
+ 1
like other methods, inside class, but not in inner nested class.
If you run code on real java environment eg on laptop with installed java JDK, if your code file has name Example.java, method main() must be in class Example