Problem Statement
What makes an interface a functional interface in Java?
Explanation
A functional interface is defined by a single abstract method. @FunctionalInterface is optional and only enforces the rule at compile time. Default and static methods don’t change the SAM count.
Practice Sets
This question appears in the following practice sets:
