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

What is the use of callablestatement?

577


What is a parameter example?

531


What do you mean by inner class in java? Explain

588


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

592


What is meant by class loader? How many types are there?

676






What are controls and their different types in awt?

606


what is a thread pool in java and why is it used?

532


What is math floor in java?

472


What is integer size in java?

514


Differentiate between array list and vector in java.

638


Explain about public and private access specifiers?

536


Can we print null in java?

574


What is the major drawback of internal iteration over external iteration?

589


What is the size of arraylist in java?

608


What is a vararg?

554