Why i have to write this class MyClass { public static void main(String[ ] args) in a java program | Sololearn: Learn to code for FREE!
- 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 Réponses
+ 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