Oracle
1Z0-850 · Question #44
Given: 1. interface Flyer { 2. void takeoff(); 3. boolean land(); 4. } 5. class Airplane implements Flyer { 6. public void takeOff() { / some code / } 7. // insert code here 8. return true; 9. } 10…
Sign in or unlock 1Z0-850 to reveal the answer and full explanation for question #44. The question stem and answer options stay visible for context.
Question
Given:
- interface Flyer {
- void takeoff();
- boolean land();
- }
- class Airplane implements Flyer {
- public void takeOff() { /* some code */ }
- // insert code here
- return true;
- }
- } Which, inserted at line 8, correctly implements the interface?
Options
- Aboolean land(int i) {
- Bpublic void land() {
- Cprotected boolean land() {
- Dpublic boolean land() {
- Eboolean land() {
Unlock 1Z0-850 to see the answer
You've previewed enough free 1Z0-850 questions. Unlock 1Z0-850 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.