What if the main method is declared as private? - JAVA Interview Questions

What if the main method is declared as private?


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



Click Here to See Answer .....
Did you like this article ?
Subscribe to my RSS feed and get more JAVA Question, and Guideline, Plus a lot more great advice to help your Software Career.

0 comments:

Related JAVA Questions Posts