?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Requirements for Executing a Program

APCSA-TV1JEP

Which of the following BEST describes a requirement for executing a Java program that is not an applet?

A

The class that you are executing must contain a System.out.print() or System.out.println() statement.

B

The class that you are executing must contain a runner() method with valid code.

C

The class that you are executing must contain a main() method with valid code.

D

The class that you are executing should not contain any methods.

E

The class that you are executing must contain all the applicable subclasses.