Saturday, 19 March 2016

What if the main method is declared as private ?


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

No comments:

Post a Comment

Note: only a member of this blog may post a comment.