What is adapter class?

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


Please Help Members By Posting Answers For Below Questions

What are the high-level thread states in java programming?

551


Does java arraylist maintain insertion order?

527


Why string is a class?

524


Difference between method overloading and overriding.

556


Why singleton is not thread safe?

549






What is a superclass?

903


Why is the main method static?

572


What about method local inner classes or local inner classes in java?

530


Where is core java used?

551


What is xslt in java?

497


What is string buffer?

487


How do you make a thread in java?

599


Explain what access modifiers can be used for methods?

542


What is the Scope of Static Variable?

701


What is the biggest integer?

525