What are inner class and anonymous class?



What are inner class and anonymous class?..

Answer / Satyendra Gupta

An Inner Class is a class that is declared inside another class, interface or enum. Anonymous classes are subclasses of a particular class and are created without a name at the time of their use. They can be useful for creating single-use, short-lived objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

Why do we use struts?

1 Answers  


How to pass runtime Parameter in Struts1.2?

2 Answers  


What is java struts?

1 Answers  


What is actioninvocation?

1 Answers  


how handle when client send multiple request at atime for multiple servlets servlets?

3 Answers   IBM,


Can you call Action class methods from Struts config.xml?

1 Answers   iGate,


Are interceptors and filters different?

1 Answers  


What are the steps of struts installation?

1 Answers  


What is the design role played by struts?

1 Answers  


What is the main difference between Mvc1 and Mvc2 Architecture??

7 Answers   IBM, Ness Technologies,


What is struts2 in java?

1 Answers  


What’s the difference between struts and espresso?

1 Answers  


Categories