Home » Interview » Technology

Should a main() method be compulsorily declared in all java classes?

Correct Answer: No not required main() method should be defined only if the source class is a java application

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion