O

Java SE 8 Programmer II

196 Questions

You can start the exam to practice all questions related to this exam.

Question No. 1

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?

Choose the correct option from the given list.
01 / 196

0 Discussions

Trending Exams