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 arraylist e in java?
Define reflection.
What is the function of compareto in java?
Why is the main method static?
Which is the class in java?
When will you define a method as static in Java?
how many types of Inheritance?
What is wrapper class html?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
Java is pass by value or pass by reference? Explain
Is 64bit faster than 32 bit?
How a variable is stored in memory?
What is toarray method in java?
How does predicate work in java?
What is variable and constant explain with example?