Java 8 Lambda Functional Interfaces

Topics • Java 8 provided Functional Interface definitions > Simply typed functional interfaces > Generically typed functional interfaces • Usage example of Predicate • Usage example of Function • Composition

Java 8 Provided Functional Interfaces

Functional Interfaces defined in Java 8 

  • Java 8 comes with a set of commonly used functional interfaces in java.util.function package - so you don't have to define your own anymore 
  • There are two kinds of Java 8 provided functional interfaces 
    • Simply typed 
    • Generically typed 
  • As a developer, you still need to know the method signature (method name and arguments) of these functional interfaces 
    • Although Lambda expressions don't refer to the method name of the functional interface, your code still needs to call that method

You must have an active subscription to download PDF and Lab Zip of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.

Subscribe     Login