Sobes.tech
Junior — Middle

Explain why a functional interface usually has only one abstract method.

sobes.tech AI

Answer from AI

A functional interface in Java contains exactly one abstract method so that it can be used with lambda expressions and method references. Having a single method simplifies syntax and allows the compiler to unambiguously determine which code should be executed when this method is called.

Explain why a functional interface usually has only… - sobes.tech