In the above code example, the reference to the anonymous class is static; but the anonymous class is not static. The reference, a1, is static so only one instance of the anonymous class will be created regardless of the number of instances of class C.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Joined: Jan 24, 2003
Thanks Dan! I understand now half of it:-) Can you enlighten me further why is class D considered an anonymous class? Thanks in advance! attila