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 initial size of arraylist in java?

0 Answers  


How does singleton class work?

0 Answers  


Which is illegal identifier in java?

0 Answers  


How can we pass argument to a function by reference instead of pass by value?

0 Answers  


What is the vector class in java programming?

0 Answers  


What is method Overloading in the perspective of OOPS?

6 Answers  


Why string is not thread safe?

0 Answers  


What is difference between static method and static variable?

7 Answers  


What is unicode datatype?

0 Answers  


Explain what do you mean by functional overloading in java?

0 Answers   Maveric, Verifone,


What is file class and what is its purpose?

1 Answers  


we have two threads..both the threads are reading the data.. is there any need of synchronization there?...justify it?

4 Answers   IBM,


Categories