Functional Interfaces
Details about functional interfaces in Java.
What is Functional Interface in Java?
Example of Incorrect Usage
@FunctionalInterface
interface InvalidFunctionalInterface {
void method1();
void method2(); // ERROR: More than one abstract method
}Compiler Error
InvalidFunctionalInterface is not a functional interface
multiple non-overriding abstract methods found in interface InvalidFunctionalInterfaceSample Example

Functional Interface vs Normal Interface
Aspect
Functional Interface
Normal Interface
Functional Interface Example
Normal Interface Example
Last updated