| 4. |
Which of the following must be true for a public class named MyClass to be compiled and run as a Java program?
Please select all the correct answers.
|
| |
A.
|
It must be declared in the file MyClass.java. |
| |
B.
|
It must contain a valid main() method. |
| |
C.
|
It must use an import statement to import java.lang. |
| |
D.
|
It must contain a package statement as its first non-blank, non-comment line. |