nerdexam
Oracle

1Z0-815 · Question #37

Given: Automobile.java Car.java What must you do so that the code prints 4?

The correct answer is B. Add @Override annotation in line 2. See the full explanation below for the reasoning.

Question

Given:

Automobile.java Car.java What must you do so that the code prints 4?

Exhibit

1Z0-815 question #37 exhibit

Options

  • ARemove the parameter from wheels method in line 3.
  • BAdd @Override annotation in line 2.
  • CReplace the code in line 2 with Car ob = new Car();
  • DRemove abstract keyword in line 1.

How the community answered

(24 responses)
  • A
    17% (4)
  • B
    71% (17)
  • C
    8% (2)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice