1Z0-809 practice question 22 of 25

Given: Book.java: public class Book { private String read(String bname) { return “Read” + bname } } EBook.java: public class EBook extends Book {…

Choose your answer, then check it against the explanation.

Given: Book.java: public class Book { private String read(String bname) { return “Read” + bname } } EBook.java: public class EBook extends Book { public class String read (String url) { return “View” + url } } Test.java: public class Test { public static void main (String[] args) { Book b1 = new Book(); b1.read(“Java Programing”); Book b2 = new EBook(); b2.read(“http://ebook.com/ebook”); } } What is the result?
Answer options
Question 22 of 25

Keep practicing

Take the free 1Z0-809 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other 1Z0-809 practice questions

Scroll to Top