Oracle
1Z0-815 · Question #52
Given: Which two changes need to be made to make this class compile? (Choose two.)
The correct answer is C. Change Line 1 to a class: E. Change Line 2 to an abstract method. See the full explanation below for the reasoning.
Question
Given:
Which two changes need to be made to make this class compile? (Choose two.)
Exhibit
Options
- AChange Line 1 to an abstract class:
- BChange Line 2 access modifier to protected:
- CChange Line 1 to a class:
- DChange Line 1 to extend java.lang.AutoCloseable:
- EChange Line 2 to an abstract method:
How the community answered
(32 responses)- A16% (5)
- B9% (3)
- C72% (23)
- D3% (1)
Community Discussion
No community discussion yet for this question.
