Recap

It’s a whole new world in Java. We can now program in an elegant and fluent functional style, with higher-order functions. This can lead to concise code that has fewer errors and is easier to understand, maintain, and parallelize. The Java compiler works its magic so we can send lambda expressions or method references where functional interfaces are expected.

We’re all set to dive into the fun parts of lambda expressions and the JDK library that’s been fine-tuned to work with lambda expressions. In the next chapter we’ll start by using lambda expressions in one of the most fundamental programming tasks: working with collections.

Footnotes

[1]

Hoare, Charles Antony Richard, "The Emperor’s Old Clothes," Communications of the ACM 24, no. ...

Get Functional Programming in Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.