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 abstraction?
Can you explain inner class.
What is java beans?
How do you compare objects in java?
When will you define a method as static?
What is purpose of keyword void?
How would you format a date in java? I.e. In the ddmmyyy format?
which class is the wait() method defined in? : Java thread
What is the size of integer?
What is double word?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
What are the different types of data structures in java?
How do you reverse sort a list in java?
What does next mean in java?
What is difference between checked and unchecked exception in java?