Oracle
1Z0-809 · Question #39
Given: EBook.java: public class EBook extends Book { public String read (String url) { return "View" + url } } Test.java: public class Test { public static void main (String[] args) { Book b1 = new…
The correct answer is D. The Test.java file fails to compile. You've hit your session limit · resets 5:20pm (America/New_York)
Question
Given:
EBook.java:
public class EBook extends Book {
public 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();
}
}
What is the result?
Options
- ARead Java Programming View http://ebook.com/ebook
- BRead Java Programming Read http://ebook.com/ebook
- CThe EBook.java file fails to compile.
- DThe Test.java file fails to compile.
How the community answered
(48 responses)- A8% (4)
- B6% (3)
- C2% (1)
- D83% (40)
Explanation
You've hit your session limit · resets 5:20pm (America/New_York)
Community Discussion
No community discussion yet for this question.