Lambda Expressions are one of the foundation of the Java language available since Java 8. In this course, you will learn a very simple method to write lambda expressions that always works and how to chain and compose them.
Lambda Expressions are one of the foundations of the Java language since
Java 8, but it can be a bit tricky. In this course, Using Lambda Expressions in Java Code, you will learn how to write these expressions in a simple method that will never fail.
First, you will see how to write lambda expressions using a simple method that
you can use in any kind of situation. Then, you will learn how to chain and compose
lambdas, leveraging the default methods from the interfaces these lambdas are
implementing. Finally, you will hear about performances and see how to
avoid performance hits by using specialized lambdas. By the end of this course, you will be able to write suppliers,
consumers, predicates and functions: the four fundamental interfaces from the
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. Assistant professor in Paris North University for more than 15 years, Jose also brings his expertise to many projects, in various industrial fields.
Course Overview Hello. My name is Jose. I'm a Java Champion and a JavaOne Rockstar. I'm talking to you from Paris, where I live, and I'm so very happy to present my new course, Using Lambda Expressions in Java Code. Writing your lambdas in Java may prove a little tricky, and in just 1 hour, this course shows you how to write them in any kind of situation using a simple method that will never fail. You will see how to write suppliers, consumers, predicates, and functions. These functional interfaces are the foundation of the java.util.function package also covered. In fact, it is the toolbox used in the collection framework and the Stream API that you need to know. Lambda expressions can also be chained, and you will see that on consumers and predicates. They can also be composed, which will be shown on comparators. Comparators is a great API that fully leverages everything you can do with lambdas, so we will spend some time on them. I am very happy to guide you through all this, and I can't wait to see how you will use lambdas to improve your Java code.