Can I have multiple main methods in the same class?

Q

Can I have multiple main methods in the same class?

✍: Guest

A

No the program fails to compile. The compiler says that the main method is already defined in the class.

2013-05-08, 1919👍, 0💬