What if the main method is declared as private?



The program compiles properly but at runtime it will give “Main method not public.” message.




Explore posts in the same categories: Java Interview Questions


BOOKMARK THIS : BlinkList | del.icio.us | Digg it | Furl | reddit | StumbleUpon | Yahoo MyWeb |


Comments are closed.