What is main method is public | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 5

What is main method is public

1st Jun 2022, 10:13 PM
Awadhut Bhagawan Yenkar
1 Answer
+ 1
main is a starting point of Java program so you make it private JVM cannot access it directly so your program will not run.
2nd Jun 2022, 9:35 AM
A͢J
A͢J - avatar