🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Yes — only abstract methods are counted
  2. B.No — it must have no other methods
  3. C.Only if it is annotated with @FunctionalInterface
  4. 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 →