A lambda expression can be assigned to a functional interface type, but so can method references, and anonymous classes.
One nice thing about the specific functional interfaces in java.util.function
is that they can be composed to create new functions (like Function.andThen
and Function.compose
, Predicate.and
, etc.) due to the handy default methods they contain.