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

Posted on    June-13-2012 1:39 AM

 Java Java 
 1 Answer(s)
  2089  View(s)
Rate this:

Chris Anderson
Chris Anderson

Total Post:197

Posted on    June-13-2012 12:00 AM

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