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 |
What are the two major components of JDBC?
What is the function of character?
Why you should not use singleton?
What is variable and rules of variable?
Does A Class Inherit The Constructors Of Its Superclass?
What is substring in java?
java program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.
What is the root class for all Java classes?
Can one thread block the other thread?
State the main difference between c++ and java?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is run time allocation?