Monday, December 29, 2014

What is the difference between the JDK 1.02 event model and the event-delegationmodel introduced with JDK 1.1

Question:What is the difference between the JDK 1.02 event model and the event-delegationmodel introduced with JDK 1.1?

Answer: The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model,components are required to handle their own events. If they do not handle a particularevent, the event is inherited by (or bubbled up to) the component's container. Thecontainer then either handles the event or it is bubbled up to its container and so on, untilthe highest-level container has been tried..In the event-delegation model, specific objects are designated as event handlers for GUIcomponents. These objects implement event-listener interfaces. The event-delegationmodel is more efficient than the event-inheritance model because it eliminates theprocessing required to support the bubbling of unhandled events.

Tags:Interview Questions, J2EE, Java,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement



School Administration Software

School Management System Software

This is One of the best School management system software in the world. School Software offers complete professional institute management system administration, library, accounting, inventory, etc for all the school activities management...

No comments:

Post a Comment