Java Lambda expressions [closed]

Oracle already has tutorial up on the topic. It lists several great uses cases.

Before I found the link, I was going to say that lambda expressions let you pass “functions” to code. So you can write code more easily that we used to need a whole mess of interfaces/abstract classes for. For example, suppose you have code that has some complex loop/conditional logic or workflow. At one step you want to do something different. With lambda expressions, you can just pass in that “something different.” Read the tutorial though. It’s very clear.

Leave a Comment