What is adapter class?

Answer Posted / rajat patel

An adapter class is an implementation class of listener interface which contain all methods implemented with empty body.For e.g WindowAdapter is an adapter of WindowListener interface. Adapter class reduce overhead on programming while working with listener interface.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the difference between composition and inheritance in java?

515


Which class contains a method: cloneable or object?

542


What is singleton class and how can we make a class singleton?

661


If an application has multiple classes in it, is it okay to have a main method in more than one class?

538


What does sprintf mean?

535






What are the advantages of java over C++?

718


Do we have pointers in java?

532


Is it safe to install java on my computer?

542


How do listeners work?

512


What is called module?

569


What is a finally block? Is there a case when finally will not execute?

549


What interface is extended by awt event listeners?

595


How do you call a reference in java?

521


How does singleton class work?

528


Is string is a data type?

571