Select all the correct ways to declare method main (java 5 and above).

Technically, all of these except the {} one are correct... they'd just be overloads, but they'd still be a method called main. Maybe you should change the question to clarify something like "not overridden"?

2023 Feb 16, 9:08:03 AM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes