Java Interview Questions and Answers
Please enable JavaScript to view this page content properly. What does happen if the main method is declared as private? Please enable JavaScript to view this page content properly. The program will compile properly but at runtime it will give "Main method not public." message. Please enable JavaScript to view this page content properly.
What does happen if the main method is declared as private? Please enable JavaScript to view this page content properly. The program will compile properly but at runtime it will give "Main method not public." message. Please enable JavaScript to view this page content properly.
Please enable JavaScript to view this page content properly. The program will compile properly but at runtime it will give "Main method not public." message. Please enable JavaScript to view this page content properly.
The program will compile properly but at runtime it will give "Main method not public." message. Please enable JavaScript to view this page content properly.