A Functional Interface has exactly one abstract method (annotated with @FunctionalInterface), such as Runnable, Predicate<T>, Function<T, R>, and Consumer<T>. Lambda Expressions let you implement them in a concise one-liner.
ADVERTISEMENT