← Quiz: Lambdas and Functional Interfaces: all 10 questions
Quiz: Lambdas and Functional Interfaces · Question 7 of 10
Does an interface with one abstract method and three default methods count as functional?
Does an interface with one abstract method and three default methods count as functional?
- A.Yes — only abstract methods are counted
- B.No — it must have no other methods
- C.Only if it is annotated with @FunctionalInterface
- D.Only if the default methods are static
Answer & explanation
Correct answer: Yes — only abstract methods are counted
Default and static methods have bodies, so they do not stop an interface from being functional.
Can you get the rest right without peeking?
Take the timed Quiz: Lambdas and Functional Interfaces quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →