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

What is the difference between an inner class and a sub-class?

0 Answers  


Is set ordered in java?

0 Answers  


when everything can be done by static block then why do we use main method?.

2 Answers  


Explain the usage of this with constructors?

0 Answers  


Can you override static methods?

0 Answers  






What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

0 Answers   PUCIT,


Can you call a method on a null object?

0 Answers  


Explain Stream Tokenizer?

4 Answers  


What are the types of methodology?

0 Answers  


Explain Linked HashSet

1 Answers  


how to compile jsp?

4 Answers   Logica CMG,


Difference between flush() and commit() in hibernate?

2 Answers   Bally Technologies,


Categories