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 |
If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.
Is array primitive data type in java?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
What is java class writing rules?
wahts is mean by thread?
22 Answers HCL, TCS,
Does anyone still use java?
What is the difference between a local variable and an instance variable?
can two class in a code be public??if yes then how??
how to split string in java?
Difference between character constant and string constant in java ?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What are uses of Hash Code?