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 is the use of anonymous inner classes ?
What is the difference between Array and Hash Table?
What is another word for methodology?
Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.
What is the default value of an object reference declared as an instance variable?
What is a void method java?
What is stop(), suspend(), resume() method?
What do you mean by jjs in java8?
What is meant by class loader and how many types are there?
Can a class inherit the constructors of its superclass?
what is type of statement in jdbc connection?
How do u pass data from one jsp to another jsp?