+ 1
Can we need to create special class for main method
5 Respostas
+ 4
No as long as is inside of a class somewere in your program that all that matters.
+ 2
In Java,the main method has to be inside a class.
+ 2
Every Java program must have at least one class and only one main method with String array parameter. Main method must be inside of a class, but you don't need to have special class for it.
+ 1
no, we already mention that... public static void main(string args[]){}in java, in starting of every java program.