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 are controls and their different types in awt?
How do I start learning java?
What is classpath?
Write a program to print fibonacci series up to count 10.
Does java allow overriding static methods ?
Explain wrapper classes in java?
Which data type is class in java?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
How many bytes is 255 characters?
What is hasnext in java?
give an example for encapsulation?
What is meant by local variable and instance variable?
How does arrays sort work in java?
What is isa relationship?
Why are pointers not secure?