Answer Posted / 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 |
Post New Answer View All Answers
What does .equals do in java?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
Is java a compiler?
How is garbage collection controlled?
How is a variable stored in memory?
What are wrapped classes in java programming?
Can an unreferenced object be referenced again?
What is the meaning of I ++ in java?
What is memory leak and how does java handle it?
What is the base class of all exception classes in java?
What is a control variable example?
which pattern is default in scanner package?
Distinguish between a predicate and a function?
Explain the difference between association, aggregation and inheritance relationships.
List out five keywords related to exception handling ?