Lambdas and Functional Interfaces
Passing behaviour as an argument, and the interface it is compiled against.
A lambda looks like a new language feature and is mostly an old one with less typing: it is an object implementing an interface with one abstract method. Knowing what it lands in explains every restriction it has, including the one about captured variables.
Contents
9 cardsnot started