Thursday, February 12, 2009

What if the main method is declared as private

Question :What if the main method is declared as private?
Answer :The program compiles properly but at runtime it will give "Main method not public." message.

No comments: