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 would you use Bubble Sort to sort the number of elements?

578


How do you create immutable object in java?

535


Explain JMS in detail.

612


Explain the importance of import keyword in java?

522


Can a constructor be protected?

529






What are the files generated after using IDL to java compiler?

582


What is the purpose of default constructor?

578


What is meant by object oriented programming – oop?

543


Give me some null interfaces in java?

598


What is jee6?

535


What is a numeric literal?

521


why java does not support unsigned keyword?

4244


What is overloading and overriding in java?

656


How can you make a class serializable in java?

565


What are reference variables in java?

592