What is the use of anonymous inner classes ?
Answer Posted / sam e
The use of an anonymous inner class is to create a
non-reusable implementation of an abstract class or
interface. For example, a UI button that is Runnable can
implement its run method at the same place in code that it
is created.
| Is This Answer Correct ? | 20 Yes | 3 No |
Post New Answer View All Answers
What is the difference between a loader and a compiler?
Which one of the following suits the description of a string better: derived or primitive?
Is java a security risk?
What is difference between Heap and Stack Memory?
What’s the difference between the methods sleep() and wait()?
How to instantiate member inner class?
What are static blocks and static initalizers in java ?
Explain the difference between hashmap and hashtable in java?
what do you mean by java annotations?
When should I use stringbuffer?
Convert a BST into a DLL and DLL to BST in place.
Is alive and join method in java?
Can main() method in java can return any data?
Explain when classnotfoundexception will be raised ?
Can we create an object of static class in java?