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 static variable with example?
How do listeners work?
Why we do exception handling in java and how many types of exceptions are there?
Explain about core java?
What do you mean by platform independence? What is an interface?
What is final int?
Why singleton pattern is better than creating singleton class with static instance?
What is concurrent hashmap and its features?
What is flag in python?
Can we override constructors?
Is a method a procedure?
Which collection is thread safe in java?
What is a two-pass assembler?
In a container there are 5 components. I want to display all the component names, how will you do that?
Explain the polymorphism principle?