3 ms·
>> Java required you to create a whole object with a single method > With Java 8's lambda functions (around for > 2 years now) this is no longer the case. Yes
by dozzie 9y ago
>> Java required you to create a whole object with a single method
> With Java 8's lambda functions (around for > 2 years now) this is no longer the case.
Yes, but only because Java compiler does that for you. It's still fugly
anonymous instance of an anonymous class implementing the necessary interface.