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 is difference between overloading and overriding in java?
what is the purpose of "virtual"?
What are parsing rules?
what is the difference between yielding and sleeping? : Java thread
What is data member in java?
What are different types of classloaders?
Is java a utf 8 string?
Which is bigger double or float?
What is the indent key?
how to one war file class to another war file class?
What is main in java?
How will you load a specific locale?
Does substring create a new object?
Explain the difference between jvm and jre?
What are the properties of thread?