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
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)- A17% (4)
- B71% (17)
- C8% (2)
- D4% (1)
Community Discussion
No community discussion yet for this question.
