What Is The Difference Between The Jdk 1.02 Event Model And The Event-delegation Model 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 particular event, the event is inherited by (or bubbled up to) the component's container. The container then either handles the event or it is bubbled up to its container and so on, until the highest-level container has been tried.
In the event-delegation model, specific objects are designated as event handlers for GUI components. These objects implement event-listener interfaces. The event-delegation model is more efficient than the event-inheritance model because it eliminates the processing required to support the bubbling of unhandled events.
How Is It Possible For Two String Objects With Identical Values Not To Be Equal Under The == Operator?
The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.
Why Are The Methods Of The Math Class Static?
So they can be invoked as if they are a mathematical code library.
What Checkbox Method Allows You To Tell If A Checkbox Is Checked?
getState().
What State Is A Thread In When It Is Executing?
An executing thread is in the running state.
What Are The Legal Operands Of The Instanceof Operator?
The left operand is an object reference or null value and the right operand is a class, interface, or array type.
What An I/o Filter?
An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.
If An Object Is Garbage Collected, Can It Become Reachable Again?
Once an object is garbage collected, it ceases to exist. It can no longer become reachable again.
What Is The Set Interface?
The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.
What Classes Of Exceptions May Be Thrown By A Throw Statement?
A throw statement may throw any expression that may be assigned to the Throwable type.
What Are E And Pi?
E is the base of the natural logarithm and PI is mathematical value pi.
Are True And False Keywords?
The values true and false are not keywords.
What Is A Void Return Type?
A void return type indicates that a method does not return a value.
What Is The Purpose Of The Enableevents() Method?
The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event.
The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.
What Is The Difference Between The File And Randomaccessfile Classes?
The File class encapsulates the files and directories of the local file system.
The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.
What Happens When You Add A Double Value To A String?
The result is a String object.
What Is Your Platform's Default Character Encoding?
If you are running Java on English Windows platforms, it is probably Cp1252. If you are running Java on English Solaris platforms, it is most likely 8859_1.
Which Package Is Always Imported By Default?
The java.lang package is always imported by default.
What Interface Must An Object Implement Before It Can Be Written To A Stream As An Object?
An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object.
How Are This And Super Used?
this is used to refer to the current object instance.
super is used to refer to the variables and methods of the superclass of the current object instance.
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 particular event, the event is inherited by (or bubbled up to) the component's container. The container then either handles the event or it is bubbled up to its container and so on, until the highest-level container has been tried.
In the event-delegation model, specific objects are designated as event handlers for GUI components. These objects implement event-listener interfaces. The event-delegation model is more efficient than the event-inheritance model because it eliminates the processing required to support the bubbling of unhandled events.
How Is It Possible For Two String Objects With Identical Values Not To Be Equal Under The == Operator?
The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.
Why Are The Methods Of The Math Class Static?
So they can be invoked as if they are a mathematical code library.
What Checkbox Method Allows You To Tell If A Checkbox Is Checked?
getState().
What State Is A Thread In When It Is Executing?
An executing thread is in the running state.
What Are The Legal Operands Of The Instanceof Operator?
The left operand is an object reference or null value and the right operand is a class, interface, or array type.
What An I/o Filter?
An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.
If An Object Is Garbage Collected, Can It Become Reachable Again?
Once an object is garbage collected, it ceases to exist. It can no longer become reachable again.
TIBCO Software Most Frequently Asked Latest Advanced Java Interview Questions Answers |
What Is The Set Interface?
The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.
What Classes Of Exceptions May Be Thrown By A Throw Statement?
A throw statement may throw any expression that may be assigned to the Throwable type.
What Are E And Pi?
E is the base of the natural logarithm and PI is mathematical value pi.
Are True And False Keywords?
The values true and false are not keywords.
What Is A Void Return Type?
A void return type indicates that a method does not return a value.
What Is The Purpose Of The Enableevents() Method?
The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event.
The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.
What Is The Difference Between The File And Randomaccessfile Classes?
The File class encapsulates the files and directories of the local file system.
The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.
What Happens When You Add A Double Value To A String?
The result is a String object.
What Is Your Platform's Default Character Encoding?
If you are running Java on English Windows platforms, it is probably Cp1252. If you are running Java on English Solaris platforms, it is most likely 8859_1.
Which Package Is Always Imported By Default?
The java.lang package is always imported by default.
What Interface Must An Object Implement Before It Can Be Written To A Stream As An Object?
An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object.
How Are This And Super Used?
this is used to refer to the current object instance.
super is used to refer to the variables and methods of the superclass of the current object instance.
Post a Comment