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. ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access