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 mnemonic in assembly language?

541


Why array is used in java?

505


What class allows you to read objects directly from a stream?

851


What is pre increment and post increment in java?

493


How can we find the actual size of an object on the heap?

796






What is the nested interface?

589


Is string a datatype?

542


What is purpose of find feature?

601


List the three steps for creating an object for a class?

508


How do you implement singleton class?

507


What are multiple inheritances?

571


What is identifier give example?

545


What is a subsequence of a string?

535


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1402


What is a java string?

531