What is adapter class?

Answer Posted / akki

Adapter classes are empty implementation of the methods provided by their corresponding interfaces.
if we implements the interface we have to give definition to all methods of interface.
but if we extend adapter class then we will require to define method which we gonna use in our code

Is This Answer Correct ?    20 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java have extension methods?

529


What are different data structures in java?

534


Differentiate between stringbuffer and string?

596


Can we call thread start () twice?

521


Describe the Big-O Notation.

615






Explain the importance of join() method in thread class?

640


What is illegal identifier in java?

538


What is ellipsis in java?

578


How do you clear a list in java?

603


What is heterogeneous in java?

495


How hashset works internally in java?

587


Why deletion in linkedlist is fast than arraylist?

535


What is map and hashmap in java?

622


What is sortedmap interface?

556


Difference between Linked list and Queue?

611