Adapter classes?
Answers were Sorted based on User's Feedback
Answer / ranganathkini
The Java AWT provides a number of adapter classes for the
different EventListener interfaces. These adapter classes
implements the corresponding interfaces with a series of
do-nothing methods.
By subclassing the respective Adapter rather than
implementing EventListener interfaces directly, one can
avoid having to write the methods that are not actually
needed. Only those methods can be overridden that are
planned to be actually implemented.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / a sriniva rao
By using Adapter class we can implement the interface's
required methods.for ex. in an interface there are 100's of
methods,but we want to implement only two methods.By using
Adapter class we can implement those two methods and rest
are defined by null body.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ravikiran
Adapter classes are the null implementation for the methods
od container class
| Is This Answer Correct ? | 2 Yes | 0 No |
Why main method is static in java?
How can we use primitive data types as objects?
Difference between vector and arraylist.
Give an example of use of pointers in java class.
What is wrapper class example?
What is meant by object oriented programming – oop?
What is the purpose of abstract class?
1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low priority thread or high priority thread?
what invokes a threads run() method? : Java thread
What do you mean by multithreaded program?
What is getclass () getname () in java?
What is difference between hashset and hashmap in java?