Passing Behavior Around with Lambdas¶
โ Java 17
Sometimes the only thing that changes in your code is one small rule. A lambda lets you hand that rule to a method in a single line, without writing a whole class. Here you'll see where lambdas come from, how they run, and every rule of their syntax.
In this series¶
| # | Page | Reading time |
|---|---|---|
| 1 | From a filter class to a lambda | 3 min |
| 2 | Lambda syntax, from long to short | 4 min |
| 3 | Lab: building the rows of the home screen | 4 min |
๐ OCP 1Z0-829 candidates: exam traps and practice questions (optional)
Prerequisites: classes, interfaces and records.