Oracle already has a tutorial theme. It lists several cases of great use.
Before I found the link, I was going to say that lambda expressions allow you to pass "functions" to code. This way, you can write code more easily, for which we needed a whole mess of interfaces / abstract classes. For example, suppose you have code that has a complex loop / conditional logic or workflow. In one step you want to do something else. With lambda expressions, you can simply pass this “something else”. However, read the tutorial. This is very clear.
Jeanne Boyarsky May 31 '13 at 14:56 2013-05-31 14:56
source share