adapter class ?
Answers were Sorted based on User's Feedback
Answer / janet
An adapter class provides an empty implementation of all
methods in an event listener interface.Adapter classes are
useful when you want to receive and process only some of
the events that are handled by a particular event listener
interface.you can define a new class to act lisener by
extending one of the adapter classes and implementing onlu
those events in which you are interested.
For ex: the MouseMotionListenerAdapter class has two
methods,mouseDragged() and mouseMoved(). The signatures of
these empty are exactly as defined in the
MouseMotionListener interface. If you are interested in
onlu mouse drag events,that you could simply extend
MouseMotionAdapter and implement mouseDragged().
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
adapter class provides empty implementation for
eventlistener interface
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we have more than one package statement in source file ?
What happens if an exception is throws from an object's constructor?
How do you reverse a list?
In java, what is the difference between method overloading and method overriding?
Explain jvm, jre, and jdk?
Can we create object of inner class in java?
Can we override constructor in java?
How to convert string to byte array and vice versa?
if am have 100 threads(for ex:T1,T2---T100) how we give priority to these threads and how the system excute these threads
What is extension method in java?
there are some duplicate values in ArrayList, how U'll get that array with out duplicate?
What is inheritance?
5 Answers Accenture, Hexaware, Syntel,