Given:
What is the result?
A. Read Java Programming
View http:/ ebook.com/ebook
B. Read Java Programming
Read http:/ ebook.com/ebook
C. The EBook.java file fails to compile.
D. The Test.java file fails to compile.
Given:
What is the result?
A. Read Java Programming
View http:/ ebook.com/ebook
B. Read Java Programming
Read http:/ ebook.com/ebook
C. The EBook.java file fails to compile.
D. The Test.java file fails to compile.
C
Question has typo -> it should be public String read(String url) in Ebook.java
If typo had been corrected then answer should be D.
C,D
C: because of “public class String”
D: Because of privat access to read method in class Book
Only D
c,d is right