Abstract Window Toolkit (AWT) Question:
Download Questions PDF

What are the advantages of the event-delegation model over the event-inheritance model?

AWT Interview Question
AWT Interview Question

Answer:

Event-delegation model has two advantages over event-inheritance model. a)Event delegation model enables event handling by objects other than the ones that generate the events. This allows a clean separation between a component's design and its use. b)It performs much better in applications where many events are generated. This performance improvement is due to event-delegation model does not have to be repeatedly process unhandled events as is the case of the event-inheritance.

Download AWT Interview Questions And Answers PDF

Previous QuestionNext Question
What is controls and what are different types of controls in AWT?Which method of the Component class is used to set the position and size of a component?