- 1

Why i have to write this class MyClass { public static void main(String[ ] args) in a java program

Plz reply

19th Apr 2022, 10:29 AM
new use
new use - avatar
2 odpowiedzi
+ 1
Java program execution starts from main method. What you wrote is a main method. Without main, program won't get run.
19th Apr 2022, 11:03 AM
Jayakrishna 🇮🇳
0
Thanks bro
19th Apr 2022, 11:04 AM
new use
new use - avatar