Explain Event handling in AWT?



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

Post New Answer

More Core Java Interview Questions

Can we use string in the switch case?

0 Answers  


Sample code to retrieve objects from HashMap in sorted ascending order?

2 Answers  


What happens when a thread cannot acquire a lock on an object in java programming?

0 Answers  


What is are packages?

0 Answers  


What are the topics in advance java?

0 Answers  






What is the scope or life time of instance variables?

0 Answers  


Can a top level class be private or protected?

0 Answers  


What is default size of arraylist in java?

0 Answers  


Java support what type of parameter passing ?

7 Answers   Wipro,


Difference between JDK, JRE, JVM

16 Answers   Deloitte, HCL, Mind Tree, Oracle, Reliance, TCS, ThinkBox,


What is the use of static import ?

4 Answers   Rolta,


Can I uninstall java?

0 Answers  


Categories