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 are filterstreams?
how to convert Java project into Maven ?
Which method cannot be overridden in java?
what is aggregation in java?
What is the default size of arraylist in java?
Does java allow overriding static methods ?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What is a cup of java?
What is unicode datatype?
Can we have any code between try and catch blocks?
What is null statement?
What is a Hash Table? What are the advantages of using a hash table?
Enlist few advantages of inheritance?
What is array length in java?
How many bits is a char?