Ask a Question
Advertise on boostr.in
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.
Sep 13, 2013
Java Interview Questions
Sep 12, 2013
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please