What is anonymous class

Showing Answers 1 - 4 of 4 Answers

Rohan

  • May 30th, 2005
 

Class created at run time and not associated with any name is called Anonymous class

  Was this answer useful?  Yes

Arundathi

  • Jul 1st, 2005
 

An inner class without naming is called an anonymous class

  Was this answer useful?  Yes

Gags

  • Aug 16th, 2005
 

Anonymous class does not have name. 
It can extend a class or implement an interface but cannot do both at the same time.  
An anonymous class is never abstract.  
An anonymous class is always an inner class.  
It is never static.  
An anonymous class is always implicitly final.  
Anonymous class defined in a method has access to final method variables and also to the outer class's member variables

nakash

  • Jan 7th, 2007
 

Class nested in another class is known as anonymous class

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions