Explain Event handling in AWT?
Answer / 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 |
What is the diffrence between inner class and nested class?
What are the Static and Dynamic Variables? Differentiate them.
How concurrent hashmap works?
What are methods in java?
Can we define constructor in inner class?
Can a class have an interface?
What are abstract classes and anonymous classes?
0 Answers Flextronics, Thomson Reuters, Virtusa,
Can you override static methods?
What do you mean by an interface in java?
Why do we need strings in java?
To set the position and size of a component, which methods are used?
Name four container classes.