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
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?
What is an error in java?
What is the loop in java?
Write a program to show whether a graph is a tree or not using adjacency matrix.
Can you change array size in java?
What is size of int in java?
Is array serializable java?
How to provide security in java
What is the difference between overriding and overloading in OOPS.
Java is pass by value or pass by reference? Explain
Does java support Operator Overloading?
What is the multi-catch block in java?
Explain the use of shift operator in java. Can you give some examples?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
Which category the java thread do fall in?