What is the use of anonymous inner classes ?
Answer Posted / bindhu
We can declare an inner class within the body of a method
without naming it. These classes are known as anonymous
inner classes
Very useful for controlled access to the innards
of another class. and useful when we need one instance of a
special class.
Is This Answer Correct ? | 11 Yes | 6 No |
Post New Answer View All Answers
Why java is not 100% object-oriented?
What is a percentage sign called?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
How do I write a self declaration?
What are the differences between abstract class and interface?
Can we create object of static class?
Have you ever used hashtable and dictionary?
Why do we override tostring method in java?
What are the types of methods in java?
What is a boolean used for?
What is difference between string and new string?
What is entry in java?
Explain the significance of listiterator.
What are the string methods in java?
What is a void in java?