Question: Which statements about Java classes are true? (Choose three.) A. A Java class file may include more than one package statement. B. A Java class

Which statements about Java classes are true? (Choose three.)

A. A Java class file may include more than one package statement.

B. A Java class file may include more than one import statement.

C. A Java class file may contain more than one comment.

D. Any instance fields within a class must be defined after the class name.

E. Any instance fields within a class must be defined before the class name.

F. Java supports macros, in which fragments of code within a class may be defined inside a Java file, separate from any top-level type declaration.

Step by Step Solution

3.34 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The correct statements about Java classes are B A Java class file may include more than one import s... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!