Lambdas: some rules of thumb

Most of the time, using labmda expressions in Java is fairly straightforward, as we saw in our introduction. On this and the following pages, we will tackle a few more details that will emerge sooner or later as you make more extensive use of lambdas:

Working with lambdas: some rules of thumb

Most of the time, we can work to a few rules of thumb. We will look at some of these in more detail, including exceptions to the rules:

These rules of thumb are outlined in more detail over the following pages:


If you enjoy this Java programming article, please share with friends and colleagues. Follow the author on Twitter for the latest news and rants.

Editorial page content written by Neil Coffey. Copyright © Javamex UK 2021. All rights reserved.