- 1
Why i have to write this class MyClass { public static void main(String[ ] args) in a java program
Plz reply
2 Réponses
+ 1
Java program execution starts from main method. What you wrote is a main method. Without main, program won't get run.
0
Thanks bro