Adapter classes?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you add an element to a hashset in java?

492


Which class represents the socket that both the client and server use to communicate with each other?

574


What is the default execution method in java?

624


What does three dots mean in java?

651


What is Major and importance difference between for and foreach loop ?

575






Which keyword specify that a variable is effectively final ?

577


What are the differences between wait() and sleep()?

541


What do you mean by scope of variable?

488


What is singleton service?

514


Compare overloading and overriding?

561


Can set contain duplicates?

551


What is lexicographically smallest string?

602


Is alive in java?

508


What is meant by local variable and instance variable?

602


What are meta-annotations?

553