Adapter classes?

Answer Posted / a sriniva rao

By using Adapter class we can implement the interface's
required methods.for ex. in an interface there are 100's of
methods,but we want to implement only two methods.By using
Adapter class we can implement those two methods and rest
are defined by null body.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

3793


What is an error in java?

641


What is the loop in java?

576


Write a program to show whether a graph is a tree or not using adjacency matrix.

597


Can you change array size in java?

532






What is size of int in java?

548


Is array serializable java?

525


How to provide security in java

1805


What is the difference between overriding and overloading in OOPS.

566


Java is pass by value or pass by reference? Explain

534


Does java support Operator Overloading?

611


What is the multi-catch block in java?

537


Explain the use of shift operator in java. Can you give some examples?

543


Difference between ‘is-a’ and ‘has-a’ relationship in java?

543


Which category the java thread do fall in?

575