exam questions

Exam 1z0-816 All Questions

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

Exam 1z0-816 topic 1 question 4 discussion

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

Given:

Which two interfaces can be used in lambda expressions? (Choose two.)

  • A. MyInterface1
  • B. MyInterface3
  • C. MyInterface5
  • D. MyInterface2
  • E. MyInterface4
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

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
Ashan_Ozlov
2 months, 2 weeks ago
Selected Answer: AD
A allowed D the equals different signature to Object class equals
upvoted 1 times
...
Eivind123456789
11 months, 2 weeks ago
Selected Answer: AD
Allowed with private methods in interfaces if implemented. Allowed with static methods (private and public) if implemented.
upvoted 2 times
...
lenicoulibaly
1 year ago
Selected Answer: D
D is the correct answer because D got only one abstract method A is a compilation error because only static and default method can be none abstract in an interface B Be could not be used in lambda expression because B got two abstract methods C is a compilation error because static methods in interface could never be abstract. They need to be implemented in the interface E is a compilation error because only static and default methods could be implemented in an interface
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