July 2023
Intermediate to advanced
276 pages
6h 55m
English
OOP has become the de facto standard, but with lambda expressions in Java, we can pull a few more techniques out of our bag of design tricks. In Java, OOP and functional style can complement each other and can nicely interplay. We can use these to create lightweight designs that are flexible to change and easier to extend.
We can replace interfaces, class hierarchies, and anonymous inner classes with concise code. We need fewer lines of code to get the same job done, and we can quickly try out new ideas.
In this chapter lambda expressions bring to life some neat design ideas; where we often use objects, we’ll instead use lightweight functions. We’ll use lambda expressions to easily separate logic from ...
Read now
Unlock full access