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 |
Can we use string in the switch case?
Sample code to retrieve objects from HashMap in sorted ascending order?
What happens when a thread cannot acquire a lock on an object in java programming?
What is are packages?
What are the topics in advance java?
What is the scope or life time of instance variables?
Can a top level class be private or protected?
What is default size of arraylist in java?
Java support what type of parameter passing ?
Difference between JDK, JRE, JVM
16 Answers Deloitte, HCL, Mind Tree, Oracle, Reliance, TCS, ThinkBox,
What is the use of static import ?
Can I uninstall java?