What is main method is public | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 5

What is main method is public

1st Jun 2022, 10:13 PM
Awadhut Bhagawan Yenkar
1 Réponse
+ 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