GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 145 of 921    Print  
What is the difference between the JDK 1.02 event model and the event-delegationmodel introduced with JDK 1.1
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.


  
Total Answers and Comments: 0 Last Update: N/A   
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that havebeen shifted out. 
Latest Answer : While dealing with (+)ve numbers there is no difference between >>> and >> operators.Both operators shift zeros into the upper bits of a number.The difference arises when dealing with (-)ve numbers.Since (-)ve numbers,(-)ve numbers have ...

When a task invokes its yield() method, it returns to the ready state. When a task invokesits sleep() method, it returns to the waiting state. 
Latest Answer : yield method is mainly used to release the lock of resource and pull up in to steady state from wait pool. Sleep() will pull the thread to sleep for the given time. It will throws exception while trying to intrupt in b/w the sleep state ...

The EventObject class and the EventListener interface support event processing. 
Latest Answer : Java.util.Event class ...

Under preemptive scheduling, the highest priority task executes until it enters the waitingor dead states or a higher priority task comes into existence. Under time slicing, a taskexecutes for a predefined 
Latest Answer : 1.    Pre-emptive Scheduling.Ways for a thread to leave running state -·         It can cease to be ready to execute ( by calling a blocking i/o method)·         ...

The CheckboxMenuItem class extends the MenuItem class to support a menu item thatmay be checked or unchecked. 

The java.awt.AWTEvent class is the highest-level class in the AWT event-classhierarchy. 

Most of the AWT-related events of the event-delegation model are defined in thejava.awt.event package. The AWTEvent class is defined in the java.awt package. 

If an expression involving the Boolean & operator is evaluated, both operands areevaluated. Then the & operator is applied to the operand. When an expression involvingthe && operator is evaluated, the 
Latest Answer : & -> for bitwise operation&&-> for logical comparison ...

A break statement results in the termination of the statement to which it applies (switch,for, do, or while). A continue statement is used to end the current loop iteration andreturn control to the loop 
Latest Answer : The break keyword halts the execution of the current loop and forces control out of the loop. The continue is similar to break, except that instead of halting the execution of the loop, it starts the next iteration. ...

The event-delegation model has two advantages over the event-inheritance model. First,it enables event handling to be handled by objects other than the ones that generate the events (or their containers). 


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

NLP Well Formed Outcome Model

NLP Well Formed Outcome Model Introduction In modern days goal setting has become important for achieving success The concept of SMART goals is developed where SMART stands for specific measurable attainable and assignable realistic and rewarding time able and tangible In spite of the importance giv
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

SCOR Model Process

SCOR Model Process The Supply Chain Operations Reference Model commonly known as SCOR is a diagnostic tool for the Supply Chain Management It lets the users know the various processes involved in a business and the important things that lead to customer satisfaction The Supply Chain Operations refer
 

SCOR Model

SCOR Model The SCOR Model also referred to as the Supply Chain Operations Reference model is a type of tutorial used to improvise your knowledge and usage of the Supply Chain Management system It is more of a management tool The Supply Chain Management Council has designed the SCOR Model in collabor
 

What is OSI Model

The OSI model, which is shorthand for Open Systems Interconnection Basic Reference Model, is an abstract computer network protocol design divided into seven layers, developed in 1977 by the American National Standards Institute (ANSI) working group on Distributed Systems (DISY) as part of the OSI in
 

What is Common Data Model

This data model represents events, entities and objects in the real world that are of interest to the company. It is subject oriented and includes all aspects of the real world, primarily activities pertaining to the business. To use lay terms, a data model can be considered a road map to get one em
 

What is Data Model

Data Model is a logical map that represents the inherent properties of the data independent of software, hardware, or machine performance considerations. The model shows data elements grouped into records, as well as the association around those records. Since the data model is the basis for data
 

Physical and Logical Data Model

The main important aspect is physical data model is created after logical data model. For designing a logical data model one need not have through knowledge in any specific RDBMS like oracle, Informix and so on. This is because logical data model is created after having through study of the business
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape