nerdexam
Oracle

1Z0-815 · Question #24

Given: Which two lines inserted in line 1 will allow this code to compile? (Choose two.)

The correct answer is A. protected void walk(){} B. void walk(){}. See the full explanation below for the reasoning.

Question

Given:

Which two lines inserted in line 1 will allow this code to compile? (Choose two.)

Exhibit

1Z0-815 question #24 exhibit

Options

  • Aprotected void walk(){}
  • Bvoid walk(){}
  • Cabstract void walk();
  • Dprivate void walk(){}
  • Epublic abstract void walk();

How the community answered

(45 responses)
  • A
    71% (32)
  • C
    4% (2)
  • D
    16% (7)
  • E
    9% (4)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice