Home > DeveloperSection > Interviews > What if the main method is declared as private

Posted on    July-17-2015 10:54 PM

 Java Java 
Ratings:
 1 Answer(s)
  328  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    July-17-2015 10:54 PM

The program compiles properly but at runtime it will give "Main method not public." message

Don't want to miss updates? Please click the below button!

Follow MindStick