What is Functional Interface in java ?
The interface which contains only one abstract method is known as functional interface. It may contain any number of default and static method.
We can use @FunctionalInterface annotation to make a interface as functional interface .
Predefined FI examples are Runnable , Comparable etc.
Types Of Functional Interfaces?
Function
Consumer
Predicate
Supplier
#sjprogrammingsolutions #functionalinterface #function #supplier #predicate #consumer #java8
Thank you !