I am reading Joshua Blochs “Effective Java” 2nd Edition. I am currently in paragraph 22, which describes inner and nested classes, but I cannot understand what it means by this sentence:
Anonymous classes include instances if and only if they occur in a non-statistical context.
Can someone give me a code example and explain what exactly it does? I know that if it InnerClassis a member OuterClass, its spanning instance OuterClass, but in terms of an anonymous class, this sounds strange to me.
ashur source
share