What if the main method is declared as private?

Q

What if the main method is declared as private?

✍: Guest

A

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

2013-05-02, 2000👍, 0💬