Thursday, February 12, 2009

Can I have multiple main methods in the same class

Question :Can I have multiple main methods in the same class?
Answer :No the program fails to compile. The compiler says that the main method is already defined in the class.

No comments: