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 a flag and how does it work?
How is tree Mirroring implemented?
What is the difference between double and float variables in java?
What is difference between jdk,jre and jvm?
Why string is a class?
How does remove work in java?
How do you convert an int to a string in java?
Explain the difference between string, stringbuffer and stringbuilder in java?
Explain list interface?
Can a top level class be private or protected?
Can we declare the main method of our class as private?
What are the differences between path and classpath variables?
What is qualitative variable?
What is a buffer in java?
Can we compare two strings in java?