Question 11 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 11 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given:

interface Readable (
public void readBook();
public void setBookMark ();
3

abstract class Book implements Readable { // line nt
public void readBook() {
// line n2

)

class EBook extends Book { // line n3

public void readBook() {
// line n4

Which option enables the code to compile?

© A) Replace the code fragment at line n1 with
class Book implements Readable {

CB) At line n2 insert
public abstract void setBookMark ();

© C) Replace the code fragment at line n3 with
abstract class EBook extends Book {

© D) At line n4 insert
public void setBookMark() ( }

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.