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
What is mnemonic in assembly language?
Why array is used in java?
What class allows you to read objects directly from a stream?
What is pre increment and post increment in java?
How can we find the actual size of an object on the heap?
What is the nested interface?
Is string a datatype?
What is purpose of find feature?
List the three steps for creating an object for a class?
How do you implement singleton class?
What are multiple inheritances?
What is identifier give example?
What is a subsequence of a string?
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. (
What is a java string?