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 r in java?

776


Can we override private methods?

752


Explain implementation and how is it different from conversion?

793


Explain working of call by reference function invoking.

780


Can we extend immutable class?

739


Why 1 is not a prime number?

769


What do you mean by flow of struts?

990


Is string serializable in java?

735


How can we make copy of a java object?

762


What is the point of polymorphism java?

730


How do you empty a list in java?

742


What is meant by inheritance and what are its advantages?

815


Is overriding possible in java?

693


What are measurable parameters?

770


What is the difference between object oriented programming language and object based programming language?

748