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

Is array synchronized in java?

0 Answers  


Do you know thread pools?

0 Answers   BMC,


For technical interview question please sir send me because tomorrow my interview

1 Answers   FactSet Systems,


What are reference variables in java?

0 Answers  


What primitive Java types? Howmany are they and what are their names?

3 Answers  






what is optional in java 8?

0 Answers  


What is object-oriented programming?

0 Answers  


Can I declare class as static or private?

0 Answers  


What do you mean by thread safe?

0 Answers  


What is yielding and sleeping? how they different?

2 Answers  


Can I import same package/class twice?

0 Answers  


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

0 Answers  


Categories