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

How to write custom exception in java?

593


Is static a singleton?

516


Explain the inheritance?

565


Can we create more than one object singleton class?

567


How does thread synchronization occurs inside a monitor?

542






What is jar?

625


How does hashmap work in java ?

533


How will you compute size of a structure?

574


Why java uses the concept of the string literal?

537


What is constant in programming?

550


How many tetrahedral voids are there in bcc?

536


Is ++ operator is thread safe in java?

509


What do you mean by hashing?

639


What is "this" keyword in java? Explain

651


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

562