2.1 Using Function Interfaces

Let's look at some out-of-the-box functional interfaces that come with Java 8 that lets us write some lambda expressions without having to declare an interface first.