
Explore a rapid Java 8 functional programming course that introduces lambda expressions, with part one on lambdas and a link to streams in the next block, plus practical exercises.
learn how java 8 functional programming uses passing behavior by treating code as parameters. implement a single-method processor interface with anonymous objects to capitalize strings and customize processing.
Explore how Java 8 replaces anonymous objects with lambda expressions, using functional interfaces—interfaces with a single method—to pass behavior and simplify code.
Learn how method references map to lambda expressions in Java 8, including instance, static, and constructor references, and how parameters and instances drive the conversion.
Discover practical method references in Java 8 by replacing complex lambdas with concise method references, using string and integer processing to produce the required substring.
Explore how to access local variables from an outer scope inside a lambda expression. Ensure variables are final or effectively final, since reassignment inside a lambda triggers an error.
Explore built-in functional interfaces in Java 8, including single abstract method types, lambda expressions, static and default methods, and primitive variants such as int consumers.
Explore composing lambdas to replace anonymous classes in Java 8, using functional interfaces, comparator.comparing, and lambda expressions to extract and compare first names efficiently.
Explore practical Java 8 functional programming with lambda expressions, focusing on default and static methods, readable functional interfaces, and an upcoming free streams course.
This is a very rapid course on Java 8 functional programming.
Functional programming has been the most important of all Java 8 new features. Using Java 8 functional programming, we can now code many things much faster than before, in a concise, fluent and readable manner. But, unless you learn those functional programming features properly, getting used to those becomes a bit confusing. So, in this course, we are going to grasp how to do functional programming in an intuitive and conceptual manner, very rapidly. We'll learn each feature with simple and crisp examples, which'll be very brief but quite informative.
This course is actually part I of a two-part course. It covers about Java Lambdas, e.g. lambda expressions, method references, composing lambda expressions etc. The next part, which is coming soon, will be about Streams. You'll find link to that in the resources section of the last lesson.
We've done some practical exercises in the lessons here, and the links to the source codes are available in the resources section.