Explain Event handling in AWT?
Answer / niranjanravi
There are 2 ways to handle the events.
1.EventInheritance model
2.EventDelegation model.
EVentDelegation model has 2 advantages over
EventInheritance model.
First it enables event handling by objects other than the
ones that generates the events.It allows a clean separation
between components design and its use.
Secondly it performs much better in applications where many
events are generated. This performance improvement is due
to the fact that EventDelegation model doesn't need to
repeatable habndle unhandled events as is the case of
EventInheritance
Is This Answer Correct ? | 2 Yes | 6 No |
What is a stringbuffer?
Is array serializable java?
What is CardLayout?
What happens if constructor is private?
can java object be locked down for exclusive use by a given thread? : Java thread
What is a method type?
Can an integer be null java?
What are the four versions of java?
what is the significance of listiterator in java?
What is autoboxing in java?
What is arrays fill in java?
What is the Difference between Final Class && Abstract Class?