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:
This unit is an introduction to lambdas in Java 8. Learn what lambdas are, the syntax and how to use them. Compare them with anonymous inner classes. Understand functional interfaces and use lambdas to work with legacy interfaces like Runnable.
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.
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.