nerdexam
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

1Z0-815 question #52 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)
  • A
    16% (5)
  • B
    9% (3)
  • C
    72% (23)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice