What if the main() method is declared as private? Sumit Kesarwani162423-Aug-2014javajava Updated on 18-Sep-2020
Sumit Kesarwani
23-Aug-2014The program compiles properly but at runtime it will give "main() method not public." message.