Nov 5, 2014

What if the main() method is declared as private?

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

0 comments:

Post a Comment