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 a parameter in matrices?
What is a lambda expression ? What's its use ?
What is abstraction in java?
How do you declare a destructor in java?
What are the different access modifiers available in java?
Is string serializable in java?
How can we avoid including a header more than once?
What function extracts specified characters from a string?
Can we write a class without main method in java?
What are autoboxing and unboxing? When does it occur?
What is tcp ip in java?
What is the exact difference in between unicast and multicast object? Where we will use?
What is null object in java?
What is the difference between stream and buffer?
What should I import for arraylist in java?