M

Mr. Dubey • 100.69K Points
Coach

Q. What kind of interface is necessary for a lambda to be used?

  • (A) Interface with static methods only
  • (B) Functional interface with one abstract method
  • (C) Any abstract class
  • (D) Any interface
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category JAVA

Explanation by: Mr. Dubey
Only functional interfaces with a single abstract method can be implemented via lambdas.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics