Organizational Research By

Surprising Reserch Topic

boostr.in questions - Question:Can I have multiple main methods in the same class?


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

asked Sep 13, 2013 in Java Interview Questions by anonymous
edited Sep 12, 2013
0 votes
21 views



Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

...