What is adapter class?

Answer Posted / khan

In java programming language, adapter class is used to
implement an interface having a set of dummy methods. The
developer can then further subclass the adapter class so
that he can override to the methods he requires.
Implementing an interface directly, requires to write all
the dummy methods. In general an adapter class is used to
rapidly construct your own Listener class to field events.

Is This Answer Correct ?    56 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a flag variable?

567


What is a dynamic array java?

523


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

559


What is difference between stringbuffer and string?

500


How to declare objects of a class ?

589






What is a singleton factory?

518


What is string [] args?

563


Is array passed by reference in java?

585


what do you understand by synchronization? : Java thread

553


What are the different tags provided in jstl?

553


Why are the destructors for base class and derived class called in reverse order when the program exits

1712


Is null an object in java?

567


Is java 11 paid version?

514


How do you implement singleton class?

520


What is a java string?

547