A given anonymous class is only instantiated at a single point in a program.
This does not seem to be true, since we can instantiate a class using reflection:
Am I missing something, or is JLS wrong? The problem is that the argument of "single-point instancing" was used as a rationale for a design decision (namely, that anonymous classes' instance initializers are allowed to throw any exception).
posted 12 years ago
I guess it's not totally true. But give the author a break--going into a tangent on reflection (an advanced topic) wouldn't do much good for a newbie that doesn't even understand what an anonymous class is.