Answer Posted / rajat patel
An adapter class is an implementation class of listener interface which contain all methods implemented with empty body.For e.g WindowAdapter is an adapter of WindowListener interface. Adapter class reduce overhead on programming while working with listener interface.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the difference between composition and inheritance in java?
Which class contains a method: cloneable or object?
What is singleton class and how can we make a class singleton?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What does sprintf mean?
What are the advantages of java over C++?
Do we have pointers in java?
Is it safe to install java on my computer?
How do listeners work?
What is called module?
What is a finally block? Is there a case when finally will not execute?
What interface is extended by awt event listeners?
How do you call a reference in java?
How does singleton class work?
Is string is a data type?