posted 23 years ago
Hi Payal,
I'll do more than comment, I will prove with a code example that the only correct answers are A and D.
The following code shows an anonymous class being created outside of any method (B) and also shows an anonymous class accessing both static and nonstatic variables of the enclosing class (C).
Regards,
Manfred.
[This message has been edited by Manfred Leonhardt (edited July 26, 2001).]