The nuts and bolts of anonymous inner classes in Java

from blog Kevin Boone's website, | ↗ original
Many of the standard Java APIs make extensive use of anonymous inner classes, to provide features that in other language would be provided using lambda functions or closures. However, anonymous inner classes have limitations that many developers find difficult to understand and to work with. This article explains why this is the case.