What’s the difference between anonymous classes in Java and closures?
There is almost no difference. In fact the there is an old saying about closures and objects. Closures are the poor man’s object, and objects are the poor man’s closure. Both are equally powerful in terms of what they can do. We are only arguing over expressiveness. In Java we are modeling closures with Anonymous … Read more