News

The approach used in Java 8 isn’t just limited to Java itself though. Scala has historically implemented its lambda expressions by generating anonymous inner classes.
Anonymous inner classes have undesirable characteristics that can impact the performance of your application. First, the compiler generates a new class file for each anonymous inner class.
Because it’s my bag, I’ve found that many Java developers aren’t aware of how to leverage anonymous classes. Indeed, they are an extremely handy feature, which can yield concise, but ...
Anonymous inner classes are mostly used for event handling in Java. However they can also prove useful for debugging purposes. This article explains how anonymous inner classes can be used for ...