Adapter classes?

Answers were Sorted based on User's Feedback



Adapter classes?..

Answer / ranganathkini

The Java AWT provides a number of adapter classes for the
different EventListener interfaces. These adapter classes
implements the corresponding interfaces with a series of
do-nothing methods.

By subclassing the respective Adapter rather than
implementing EventListener interfaces directly, one can
avoid having to write the methods that are not actually
needed. Only those methods can be overridden that are
planned to be actually implemented.

Is This Answer Correct ?    3 Yes 0 No

Adapter classes?..

Answer / 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

Adapter classes?..

Answer / ravikiran

Adapter classes are the null implementation for the methods
od container class

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain what do you mean by functional overloading in java?

0 Answers   Maveric, Verifone,


We can write any Java Logics in our JSP. Then why we are using servlets(Controller Layer) to interact with the DAO ?

6 Answers   TCS,


What are the supported platforms by java programming language?

0 Answers  


What is an interface in java?

0 Answers  


What are the types of collections in java?

0 Answers  






How do you decide when to use arraylist and linkedlist?

0 Answers  


What is internal iteration in java se 8?

0 Answers  


Why do we need public static void main(String args[]) method in Java...?

1 Answers  


What is the purpose of java?

0 Answers  


What is the difference between heap memory and stack memory?

0 Answers   Aspiring Minds,


Explain java coding standards for classes or java coding conventions for classes?

0 Answers  


What is * argv?

0 Answers  


Categories