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 the difference between inheritance and encapsulation?
What is meant by inheritance and what are its advantages?
Is stringwriter thread safe?
What is a line break?
Can we create an object of static class in java?
What is a protected class in java?
Is arraylist dynamic in java?
What is the use of static methods?
Give us a program to check for parenthesis matching using stack.
What is difference between iterator access and index access?
Can we override final method?
What is lambda in java?
Why is it called buffering?
How does linkedlist work in java?
Why is stringbuffer faster than string?