<< < 7 8 9 10 11 12 13 14 15 16 17 > >>   Sort: Rank

What are the legal operands of the instanceof operator?
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.
2013-01-01, 2204👍, 0💬

What state is a thread in when it is executing?
What state is a thread in when it is executing? An executing thread is in the running state.
2012-12-31, 2056👍, 0💬

What Checkbox method allows you to tell if a Checkbox is checked?
What Checkbox method allows you to tell if a Checkbox is checked? getState()
2012-12-31, 2031👍, 0💬

Why are the methods of the Math class static?
Why are the methods of the Math class static? So they can be invoked as if they are a mathematical code library.
2012-12-28, 2029👍, 0💬

How is it possible for two String objects with identical values not to be equal under the == operator?
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.
2012-12-28, 2032👍, 0💬

What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1?
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 ev...
2012-12-27, 2217👍, 0💬

What is the relationship between a method's throws clause and the exceptions that can be thrown during the method's execution?
What is the relationship between a method's throws clause and the exceptions that can be thrown during the method's execution? A method's throws clause must declare any checked exceptions that are not caught within the body of the method.
2012-12-27, 2017👍, 0💬

How are this () and super () used with constructors?
How are this () and super () used with constructors? this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.
2012-12-26, 1910👍, 0💬

Under what conditions is an object's finalize() method invoked by the garbage collector?
Under what conditions is an object's finalize() method invoked by the garbage collector? The garbage collector invokes an object's finalize() method when it detects that the object has become unreachable.
2012-12-26, 1965👍, 0💬

What is the difference between a field variable and a local variable?
What is the difference between a field variable and a local variable? A field variable is a variable that is declared as a member of a class. A local variable is a variable that is declared local to a method.
2012-12-25, 1990👍, 0💬

What class allows you to read objects directly from a stream?
What class allows you to read objects directly from a stream? The ObjectInputStream class supports the reading of objects from input streams.
2012-12-25, 2066👍, 0💬

What class of exceptions are generated by the Java run-time system?
What class of exceptions are generated by the Java run-time system? The Java runtime system generates RuntimeException and Error exceptions.
2012-12-24, 2041👍, 0💬

What is the difference between a Choice and a List?
What is the difference between a Choice and a List? A Choice is displayed in a compact form that requires you to pull it down to see the list of available choices. Only one item may be selected from a Choice. A List may be displayed in such a way that several List items are visible. A List supports ...
2012-12-24, 2103👍, 0💬

Name four Container classes.
Name four Container classes. Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane
2012-12-21, 1998👍, 0💬

What is the return type of a program's main() method?
What is the return type of a program's main() method? A program's main() method has a void return type.
2012-12-21, 2097👍, 0💬

What is casting?
What is casting? There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to ...
2012-12-20, 2038👍, 0💬

What happens when you invoke a thread's interrupt method while it is sleeping or waiting?
What happens when you invoke a thread's interrupt method while it is sleeping or waiting? When a task's interrupt() method is executed, the task enters the ready state. The next time the task enters the running state, an InterruptedException is thrown.
2012-12-20, 2327👍, 0💬

What restrictions are placed on method overloading?
What restrictions are placed on method overloading? Two methods may not have the same name and argument list but different return types.
2012-12-19, 2005👍, 0💬

Which non-Unicode letter characters may be used as the first character of an identifier?
Which non-Unicode letter characters may be used as the first character of an identifier? The non-Unicode letter characters $ and _ may appear as the first character of an identifier
2012-12-19, 2262👍, 0💬

How can the Checkbox class be used to create a radio button?
How can the Checkbox class be used to create a radio button? By associating Checkbox objects with a CheckboxGroup.
2012-12-18, 2088👍, 0💬

If a method is declared as protected, where may the method be accessed?
If a method is declared as protected, where may the method be accessed? A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.
2012-12-18, 2028👍, 0💬

Which class is the immediate superclass of the Container class?
Which class is the immediate superclass of the Container class? Component
2012-12-17, 2156👍, 0💬

When is the finally clause of a try-catch-finally statement executed?
When is the finally clause of a try-catch-finally statement executed? The finally clause of the try-catch-finally statement is always executed unless the thread of execution terminates or an exception occurs within the execution of the finally clause.
2012-12-17, 2065👍, 0💬

When does the compiler supply a default constructor for a class?
When does the compiler supply a default constructor for a class? The compiler supplies a default constructor for a class if no other constructors are provided.
2012-12-14, 1982👍, 0💬

<< < 7 8 9 10 11 12 13 14 15 16 17 > >>   Sort: Rank