What if the main method is declared as private?
Ask by Sumit Kesarwani
Updated 20 Sep 2020
When a method is declared as private, the program compiles properly but it will give runtime error Main method not public