Answer Posted / 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 |
Post New Answer View All Answers
What is thread safe singleton?
Why webdriver is an interface?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is an empty list in java?
In Java list the methods that can be overridden?
Difference difference paint() and paintcomponent()?
What do the thread?class methods run() and start() do?
What is instance means in java?
What is void data type?
What is Enum in Java?
What is Java Shutdown Hook?
What is the use of set in java?
Can arraylist contain null values?
What is the method to expand and collapse nodes in a jtree?