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 the difference between class forname and new?
Is alive in java?
Explain about static imports in java?
When will we use them?
why abstract class will have a constructor?
How do singleton patterns work?
why java does not contain pointers?
Is void a type?
What is a qualifier in a sentence?
How do you declare an empty string?
What are the four versions of java?
What is array initialization in java?