Functional interface in Java 8 What are functional interfaces?
The most important thing to be remembered about functional interface is that it has only one abstract method and not more than this. @ FunctionalI nterface is an annotation that prevents the compiler by making them aware about the fact that there is only one abstract method in the given interface. With the help of functional interfaces Java implements the functional programming in Java. Functional interface enables the usage of ‘Lambda’ expression that eliminates the code.