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

Where pragma is used?

600


Is it possible to compare various strings with the help of == operator?

548


How is the marker interface used in Java?

610


What is variable and its types?

543


Is jdk required on each machine to run a java program?

754






Convert a BST into a DLL and DLL to BST in place.

674


What is the properties class?

561


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

599


What is the difference between normal report & matrix report?

571


What is scope & storage allocation of static, local and register variables? Explain with an example.

568


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

593


What does this mean java?

561


What is singleton class example?

589


What is number data type in java?

558


What is data type in java?

487