The One-Method Contract Behind Every Lambda¶
☕ Java 17
A lambda has no name and no type of its own. It gets its meaning from a special kind of interface: a functional interface. Here you'll learn the one-method rule behind every lambda and a four-step check to tell, in seconds, whether an interface qualifies.
In this series¶
| # | Page | Reading time |
|---|---|---|
| 1 | Functional interfaces: the single abstract method rule | 3 min |
| 2 | @FunctionalInterface, Object methods and the 4-step check | 3 min |
| 3 | Lab: pluggable browse rules | 4 min |
🎓 OCP 1Z0-829 candidates: exam traps and practice questions (optional)
Prerequisites: Passing Behavior Around with Lambdas.