Course Image

Java 8 Lambda Basics

Core Java

Java 8 introduces an exciting new addition to the language - lambdas. Get started using lambdas and write code using the functional programming paradigm. Learn how to use lambdas to make your code more readable and maintainable.

Start Course

This course covers:

  • Understanding Java 8 lambdas and how to use them
  • Comparing lambdas with anonymous inner classes
  • Using lambdas with functional interfaces
  • Understanding and using method references
  • Working with collections and streams using lambdas

UNIT

02

More Lambda Features

Learn more usage patterns with lambdas. Learn about functional interfaces that come out of the box with Java 8. Also learn how to handle exceptions and how the this reference behaves in lambdas.

Using Function Interfaces 7 minutes
More Functional Interfaces 6 minutes
Exception Handling in Lambdas 7 minutes
An Exception Handling Approach 9 minutes
Closures in Lambda Expressions 8 minutes
The this reference in lambdas 9 minutes

UNIT

03

Method References and Collections

Learn about another syntax for writing certain lambda expressions - method references. Also learn about collections and streams in Java 8 and how the API benefits from the use of lambda expressions.

Method References 10 minutes
The foreach iteration 9 minutes
Introduction To Streams 11 minutes
More About Streams 6 minutes
Wrap Up 2 minutes

Downloads


Project source code

.zip file