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