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
In java how do we copy objects?
Can we override constructors in java?
What is stack class in java?
What are the different http methods?
Explain the scope of a variable.
Can a static class have a constructor java?
What is meant by local variable and instance variable?
Which collection is best for sorting in java?
What is main string [] args?
What is the program compilation process?
What is the core java?
How to handle a web browser resize operation?
Is java 1.7 the same as java 7?
Can we have any other return type than void for main method?
Why is stringbuffer not immutable?