What is the use of anonymous inner classes ?
Answer Posted / sumit bansal
Anonymous class exist till the method or block (In which it
is defined) runs. After that it vanishes so it help to use
the memory efficiently.
in your code if you want a particular class once and that
is also in the method/block use anonymous class.
it is the best of my knowledge. if you know more please
reply me.
Is This Answer Correct ? | 20 Yes | 5 No |
Post New Answer View All Answers
What are the principle concepts of oops?
Explain about the select method with an example?
Can we overload the methods by making them static?
What do you mean by append?
What do you mean by default constructor in java?
What is a null class?
What is a java string?
What is the difference between Array and Hash Table?
How do you declare an array that will hold more than 64KB of data?
What is the disadvantage of java?
Tell me the latest versions in java related areas?
What are the features of junit?
List down the methods and interfaces of collection class in java.
How do you read a char in java?
What differences exist between iterator and listiterator?