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

What is the use of anonymous inner classes ?

12 Answers   DELL, HCL,


What is the difference between Array and Hash Table?

0 Answers   Impetus,


What is another word for methodology?

0 Answers  


Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.

5 Answers  


What is the default value of an object reference declared as an instance variable?

0 Answers  






What is a void method java?

0 Answers  


What is stop(), suspend(), resume() method?

3 Answers  


What do you mean by jjs in java8?

0 Answers  


What is meant by class loader and how many types are there?

2 Answers   Apple,


Can a class inherit the constructors of its superclass?

9 Answers   iFlex, Wipro,


what is type of statement in jdbc connection?

3 Answers  


How do u pass data from one jsp to another jsp?

3 Answers   Fidelity,


Categories