What is adapter class?

Answer Posted / senthil

we can create our classes as subclasses of one of
the adapter classes, then we need to override only some of
the methods we need. i.e, An adapter classes provide empty
implementation of all methods declared in an EventListener
interface.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a copy constructor?

579


Why is singleton not thread safe?

654


What is the biggest integer?

558


When should a function throw an exception?

604


Why is stringbuffer called mutable?

569






Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

512


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

694


How do you check if a string is lexicographically in java?

503


What is anti pattern in java?

520


What is Gang of four design patterns

598


Explain the difference between abstract classes and interfaces in java?

602


What is a boolean flag in java?

571


How are variables stored?

533


How do you escape json?

542


Are arrays immutable in java?

551