Java Foundations — Question 63
Which two components can class declarations include?
Answer options
- A. A list of instance methods
- B. The main method
- C. Interfaces implemented by the class
- D. The public modifier
Correct answer: C, D
Explanation
The correct options, C and D, accurately represent components that can be included in class declarations, such as the interfaces the class implements and access modifiers like public. Options A and B are incorrect because a list of instance methods is not a formal part of the class declaration itself, and the main method is typically not included in standard class declarations.