What if the main() method is declared as private?
Ask by Sumit Kesarwani
Updated 18 Sep 2020
The program compiles properly but at runtime it will give "main() method not public." message.