Intermediate Java
Q62 / 100

What is a functional interface?

Correct! Well done.

Incorrect.

The correct answer is B) An interface with exactly one abstract method, usable as a lambda target

B

Correct Answer

An interface with exactly one abstract method, usable as a lambda target

Explanation

A functional interface (annotated with @FunctionalInterface) has exactly one abstract method. Examples: Runnable, Callable, Comparator, and the java.util.function types.

Progress
62/100