<code>Hi Neha :
Anonymous classes cannot have extends and implments clause doesn't mean that they cannot extend/implement the very fact when we instantiate the Anonymous class will tell you whether you extended a class or implemented an interface.
here is an example
class Nest{
public static void main(
String argv[]){
Nest n = new Nest();
n.mymethod(new anon(){});
/*here the class is declared and instantiated at the same time
and it extends class called anon*/
}
public void mymethod(anon i){}
}
class anon{}
The answer to this question might be pretty long, but i suggest you to go thru' RHE book or any other book and you will understand.
</code>
[This message has been edited by Arsho, Ayan (edited December 16, 2001).]