Hacker News new | ask | show | jobs
by EdwardDiego 4574 days ago
Java's anonymous classes can also act as a (large and bulky) closure, although as you have to declare local variables used by the anonymous class as final, the capacity to close over mutable state is limited to instance fields or mutable objects.