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 the types of exceptions?
Can we define package statement after import statement in java?
Which one will take more memory: an int or integer?
What's the purpose of using break in each case of switch statement?
State some situations where exceptions may arise in java?
Do I need java on my computer?
Explain the importance of thread scheduler in java?
What does java final mean?
Which sorting is best in java?
What is Applet Stub Interface ?
What is serialization in java?
Explain the significance of class loaders in bootstrap?
What is a condition in java?
What is meant by structural programming?
Can an interface have a class?