posted 21 years ago
Yes, I'd misread anonymous classes, maybe because I've only ever used them inside methods.
My understanding is now as follows. An inner, ie non-static nested class, can be a member (defined inside the outer class and accessible from outside, but not inside a method) or a non-member. If a non-member, it can be method-local or anonymous. If method-local, it can be local or anonymous. Here is a revised diagram.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3