Explain Event handling in AWT?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is void a type?

583


What is a default method?

517


Difference between final and effectively final ? Why is effectively final even required ?

552


What is a JAR file?

590


What are the principle concepts of oops?

536






What is the difference between overriding and overloading in OOPS.

553


What an i/o filter?

562


Is java code slower than native code?

555


What are the different data types in java?

530


What is a treeset class?

560


How many types of threads are there in java?

502


What is variable length arguments in java?

512


What is native method in java?

562


List implementations of list interface?

561


What is the importance of main method in Java?

572