exam questions

Exam 1z0-809 All Questions

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

Exam 1z0-809 topic 1 question 5 discussion

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

Which two reasons should you use interfaces instead of abstract classes? (Choose two.)

  • A. You expect that classes that implement your interfaces have many common methods or fields, or require access modifiers other than public.
  • B. You expect that unrelated classes would implement your interfaces.
  • C. You want to share code among several closely related classes.
  • D. You want to declare non-static on non-final fields.
  • E. You want to take advantage of multiple inheritance of type.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️
Reference:
https://books.google.com.br/books?id=nS2tBQAAQBAJ&pg=PT235&lpg=PT235&dq=You+want+to+share+code+among+several+closely+related
+classes.&source=bl&ots=3oYOu2XXN-&sig=uVFS0KB15BqyEgghXnnjJSUdcrE&hl=pt-BR&sa=X&ved=0ahUKEwjlsKe- n6baAhVEhZAKHeiEDTgQ6AEIMDAB#v=onepage&q=You%20want%20to%20share%20code%20among%20several%20closely%20related%20classes.&f=false

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
mvpVN
Highly Voted 5 years, 1 month ago
B,E (B: the relationship between the interface itself and the class implementing the interface is not necessarily strong)
upvoted 6 times
...
asdfjhfgjuaDCV
Most Recent 5 months ago
B,E is the correct.
upvoted 1 times
...
steefaand
5 months, 4 weeks ago
Selected Answer: BE
B and E are correct.
upvoted 1 times
...
r1muka5
1 year, 5 months ago
answers are B,E
upvoted 1 times
...
Innovation
4 years, 6 months ago
answer is B, E
upvoted 2 times
...
Destroyer
4 years, 9 months ago
Interface only support public access modifier so A is not correct
upvoted 2 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