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 |
how can you catch multiple exceptions in java?
Why is a singleton bad?
Can java list be null?
is it possible to instantiate the math class?
Can we have multiple public classes in a java source file?
How is a structure different from array ?
What does java final mean?
What is the meaning of variable in research?
why java is better then .net?
How GUI component handle its own events?
If circular link of two objects, then will it be garbage collected ?
In Java why we write public static void main(String args[]) why not main()?
46 Answers Aptech, GE Healthcare, Infosys, Microsoft, New Horizon, Practical Viva Questions, TCS, Wipro,