exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 11 discussion

Actual exam question from Oracle's 1z0-808
Question #: 11
Topic #: 1
[All 1z0-808 Questions]

Given:

And given the code fragment:
Book book1 = new EBook();
book1.readBook();
Which option enables the code to compile?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
vic88
1 week, 6 days ago
Selected Answer: D
@Override public void setBookMark() { }
upvoted 1 times
...
gg7495
1 year, 2 months ago
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)
upvoted 1 times
...
Vicky_65
1 year, 8 months ago
Selected Answer: D
D is the correct answer.because we need to give all abstract methods in interface in class which is implementing the interface
upvoted 1 times
...
Ankit1010
1 year, 10 months ago
D is the correct answer.
upvoted 1 times
...
willokans
2 years ago
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
upvoted 2 times
...
Def8
2 years, 1 month ago
Selected Answer: D
A concrete class needs to implement all the abstract methods.
upvoted 2 times
...
iSnover
2 years, 1 month ago
Selected Answer: D
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.
upvoted 2 times
...
HamiltonValerio
2 years, 1 month ago
Essa é boa heim!!! Letra D
upvoted 1 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago