Simple play icon Course
Skills Expanded

Lambda Expressions in Java

by Jose Paumard

Lambda expressions were added to Java more than 10 years ago. This course explains how you can write lambdas, how you can create your own and compose them, and how to use them to improve the readability of your code.

What you'll learn

Lambda expressions in Java are a classical tool that you can use to organize your applications and write better code. You can use them as is, but you can also go one step further and create your own. In this course, Lambda Expressions in Java, you will learn how to write lambdas and use them in your applications. First, you will explore how some APIs of the JDK have been built on lambda expressions, and how it brings better patterns of code that are more readable and easier to maintain. Then, you will see how the Java type system works for lambda expressions, how you can compose lambda expressions, and how you can write lambda expressions as method references. Finally, you will learn how to design your own lambda expressions by creating your own functional interfaces. When you are finished with this course, you will be able to write lambda expressions and method references easily, by just seeing the type of the lambda you need, and you will be able to refactor your existing code to leverage the level of quality that lambda expressions can give you.

Table of contents

Course Overview
1min

About the author

Passionate about programming computers for over 20 years, Jose made his debut in assembler and C, C for SIMD parallel machines before adopting Java as an object-oriented language, indispensable to most major modern applications. He brings his expertise and capacity for analysis and synthesis to many projects, mainly in the lower layers, close to the data, but also on complex UI design, or in the browser. PhD in applied maths and computer science, assistant professor in Paris North University for... more

Ready to upskill? Get started