C and D could be both correct. However, in the code fragment we are creating object of class Ebook thus, it cannot be abstract.
Thus, the correct answer is (D)
D - As concrete class will need to implement unimplemented interface method.
Java Abstract class can implement interfaces without even providing the implementation of interface methods
The answer is letter D, answers A and B are clearly wrong, C would also be right, but what shows that it is wrong is the code fragment that calls the class directly. You cannot instantiate abstract classes directly as it was done in the code snippet, so the letter D is correct, implement the abstracted method.
This section is not available anymore. Please use the main Exam Page.1z0-808 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
vic88
6 months agogg7495
1 year, 8 months agoVicky_65
2 years, 1 month agoAnkit1010
2 years, 3 months agowillokans
2 years, 6 months agoDef8
2 years, 7 months agoiSnover
2 years, 7 months agoHamiltonValerio
2 years, 7 months ago