All Java classes must contain a main method which is the first method executed when the Java class is called upon.

All Java classes must contain a main method which is the first method executed when the Java class is called upon.


Answer: False. Explanation: Only the driver program requires a main method. The driver program is the one that is first executed in any Java program (except for Applets), but it may call upon other classes as needed, and these other classes do not need main methods.


Java

Learn More Multiple Choice Question :