Java 8 Functional Interfaces

Java 8 introduced functional interfaces, which are interfaces that have exactly one abstract method. Functional interfaces are important…