.
The context determines whether the anonymous class is static, and the keyword static is not used explicity. For example, an anonymous class as the return value of a static method would be static, as it would be if it was used to initialize a static member variable.
An anonymous class is never abstract (�8.1.1.1). An anonymous class is always an inner class (�8.1.2); it is never static (�8.1.1, �8.5.2). An anonymous class is always implicitly final (�8.1.1.2).
@_@ Life is so nice!
AM<BR> <A HREF="mailto:anshulmohan@rediffmail.com" rel="nofollow">anshulmohan@rediffmail.com</A>
AM<BR> <A HREF="mailto:anshulmohan@rediffmail.com" rel="nofollow">anshulmohan@rediffmail.com</A>
Compiled from AnonyTest.java
class AnonyTest$1$sM extends java.lang.Object {
int smA;
AnonyTest$1$sM();
}
AM<BR> <A HREF="mailto:anshulmohan@rediffmail.com" rel="nofollow">anshulmohan@rediffmail.com</A>
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |