Oracle
1Z0-808 · Question #1
1Z0-808 Question #1: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-808 to reveal the answer and full explanation for question #1. The question stem and answer options stay visible for context.
Question
Given:
interface Readable {
public void readBook();
public void setBookMark();
}
abstract class Book implements Readable { // line n1
public void readBook() { } // line n2
}
class BBook extends Book { // line n3
public void readBook() { } // line n4
}
Which option enables the code to compile?
Options
- AReplace the code fragment at line_n1 with: class Book implements Readable {
- BAt line_n2 insert: public abstract void setBookMark();
- CReplace the code fragment at line_n3 with: abstract class BBook extends Book {
- DAt line_n4 insert: public void setBookMark() { }
Unlock 1Z0-808 to see the answer
You've previewed enough free 1Z0-808 questions. Unlock 1Z0-808 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.