What if the main method is declared as private?
By admin on Jul 31, 2007 in JAVA Interview Questions
The program compiles properly but at runtime it will give “Main method not public.” message.
Java Interview Questions | IT interview questions | Software Testing Interview questions | .Net Interview Questions | Job Interview Questions & Answers | Tough Interview Questions | Technology Interview Questions | Tech Interview Questions | Testing Interview Questions | SAP Interview Questions | ABAP Interview Questions | Data Warehousing Interview Questions
Current ArticleBy admin on Jul 31, 2007 in JAVA Interview Questions
The program compiles properly but at runtime it will give “Main method not public.” message.