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
Is void a type?
What is a default method?
Difference between final and effectively final ? Why is effectively final even required ?
What is a JAR file?
What are the principle concepts of oops?
What is the difference between overriding and overloading in OOPS.
What an i/o filter?
Is java code slower than native code?
What are the different data types in java?
What is a treeset class?
How many types of threads are there in java?
What is variable length arguments in java?
What is native method in java?
List implementations of list interface?
What is the importance of main method in Java?