Functional Interface

An interface with one abstract method that can be implemented by a lambda.

What is Functional Interface in Java?

Functional Interface — An interface with one abstract method that can be implemented by a lambda.

import java.util.function.Function;

class LabelFormatter {
    Function<String, String> uppercase = String::toUpperCase;
}

Level: Freelancer · More Java terms at this level

Updated