Given the following contents of the Java source code file MyClass.java, select the correct options:
// contents of MyClass.java package com.java2s; import java.util.Date; class Student {} class Course {}
b, c
You can define multiple classes, interfaces, and enums in a Java source code file.
A is incorrect. The import statement applies to all the classes, interfaces, and enums defined within the same Java source code file.
D is incorrect. If a package statement is defined in the source code file, it covers all of the classes, interfaces, and enums defined within the same Java package.