4 ms·
Its an interface with only method. I suspect that most of us would just us a lambda now.
by _ea1k 5y ago
Its an interface with only method. I suspect that most of us would just us a lambda now.
- contravariant 5y agoI'll never quite understand why it wasn't simply a function in the first place.
- dtech 5y agoJava pre-8 only had anonymous classes, there were no lambdas
- fiddlerwoaroof 5y agoAnd Java lambdas are still syntax sugar for one-method anonymous classes.