Java SE 8 Programmer 1Z0–808 Practice Full Test 1
© examsiri.com
Question : 82 of 84
Marks:
+1,
-0
interface Downloadable {
public void download();
}
interface Readable extends Downloadable { // line nl
public void readBook();
}
abstract class Book implements Readable { // line n2
public void readBook() {
System.out.println("Read Book");
}
}
class EBook extends Book { // line n3
public void readBook() {
System.out.println("Read E-Book");
}
} And given the code fragment:
Book book1 = new EBook();
boook1.readBook();What is the result?
Go to Question: