What is adapter class?

Answer Posted / barkha

An adapter class is a class that provides a dummy (empty)
implementation for an interface. That way someone who wants
to implement the interface but does not want or does not
know how to implement all methods, can use the adapter class
instead, and only override the methods he is interested in.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between final and effectively final ? Why is effectively final even required ?

563


What is ellipsis in java?

585


What about instanceof operator in java?

603


What is temp in java?

559


What is a variable analysis?

644






Can a class have a static inner class?

613


What is connection class in java?

516


why java uses class level type casting ?

2258


What is better- service oriented or batch oriented solutions?

1541


What is the difference between choice and list?

595


State the main difference between c++ and java?

594


What is meant by overloading?

590


why we use merge option in hybernate pls give a ex snippet

1466


What is an off by one error in java?

509


How to make a write-only class in java?

581