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
Which class contains a method: cloneable or object?
Why is string buffer better than string ?
Is java a software?
Where is stringbuffer stored?
What is substring in java?
What is parsing in java?
How is it possible for two string objects with identical values not to be equal under the == operator?
What are different access specifiers in java? Explain
What is thread synchronization in java?
How to make a class or a bean serializable?
What is sorting in java?
What is the difference between the final method and abstract method?
What is finally and finalize in java?
What is arrays sort in java?
What is the += operator called?