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 |
What are data structures in java?
What modifiers can be used with a local inner class?
What are pass by reference and pass by value?
How can we access some class in another class in java?
What is the locale class in java programming?
What does the three dot emoji mean?
how to create an applet
What is a ternary operator in java?
What are the interfaces defined by Java.lang package?
How do you reverse a string in java?
Why we used vector class?
What is immutable data?