← Quiz: Abstract Classes and Interfaces: all 10 questions
Quiz: Abstract Classes and Interfaces · Question 5 of 10
Which is a functional interface?
Which is a functional interface?
- A.An interface with no methods
- B.An interface with exactly one abstract method
- C.Any abstract class
- D.An interface with only default methods
Answer & explanation
Correct answer: An interface with exactly one abstract method
Exactly one abstract method makes it usable with a lambda.
Can you get the rest right without peeking?
Take the timed Quiz: Abstract Classes and Interfaces quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →