What if the main method is declared as private? Sumit Kesarwani173826-Mar-2014javajava Updated on 20-Sep-2020
Sumit Kesarwani
26-Mar-2014When a method is declared as private, the program compiles properly but it will give runtime error Main method not public