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 allow overriding static methods ?

636


What is ‘is-a ‘ relationship in java?

594


What is quick sort in java?

561


Explain about anonymous inner classes ?

584


Is space a char?

536






Can Exception handling we can handle multiple catch blocks?

648


Differentiate between overriding and overloading cases?

597


Difference between serialization and deserialization in java?

656


What is the use of isempty in java?

543


What is a dot notation?

555


Java Compiler is stored in JDK, JRE or JVM?

1053


How static variable work in java?

602


How many bits is a double?

534


What are the advantages of compiled language?

581


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

716