2 ms·
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
by EdwardDiego 13y 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.