Basics
This lesson introduces Java's lambdas expressions.
We'll cover the following...
Question # 1
What are Lambda expressions?
Lambda expressions allow us to pass code as data or functionality as a method argument. They increase the expressiveness of Java language making code more readable and concise. Lambda expressions can be used to replace writing anonymous classes, when the class implements a functional interface. A functional interface has only a single abstract method and may have default or static methods. Let's see an example below.