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

What are three ways in which a thread can enter the waiting state?
What are three ways in which a thread can enter the waiting state? A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O, by unsuccessfully attempting to acquire an object's lock, or by invoking an object's wait() method. It can also enter the waiting state by invok...
2013-01-17, 1984👍, 0💬

Which arithmetic operations can result in the throwing of an ArithmeticException?
Which arithmetic operations can result in the throwing of an ArithmeticException? Integer / and % can result in the throwing of an ArithmeticException.
2013-01-16, 3601👍, 0💬

What is a layout manager?
What is a layout manager? A layout manager is an object that is used to organize components in a container.
2013-01-16, 2058👍, 0💬

What happens if an exception is not caught?
What happens if an exception is not caught? An uncaught exception results in the uncaughtException() method of the thread's ThreadGroup being invoked, which eventually results in the termination of the program in which it is thrown.
2013-01-15, 1996👍, 0💬

How can a dead thread be restarted?
How can a dead thread be restarted? A dead thread cannot be restarted.
2013-01-15, 2044👍, 0💬

What restrictions are placed on method overriding?
What restrictions are placed on method overriding? Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method...
2013-01-14, 1947👍, 0💬

What interface is extended by AWT event listeners?
What interface is extended by AWT event listeners? All AWT event listeners extend the java.util.EventListener interface.
2013-01-14, 2027👍, 0💬

What is a compilation unit?
What is a compilation unit? A compilation unit is a Java source code file.
2013-01-11, 1924👍, 0💬

What is the purpose of garbage collection?
What is the purpose of garbage collection? The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources may be reclaimed and reused.
2013-01-11, 2029👍, 0💬

How are this and super used?
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.
2013-01-10, 1985👍, 0💬

What interface must an object implement before it can be written to a stream as an object?
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.
2013-01-10, 1961👍, 0💬

Which package is always imported by default?
Which package is always imported by default? The java.lang package is always imported by default.
2013-01-09, 2003👍, 0💬

What is your platform's default character encoding?
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..
2013-01-09, 2033👍, 0💬

What happens when you add a double value to a String?
What happens when you add a double value to a String? The result is a String object.
2013-01-08, 2016👍, 0💬

What is the difference between the File and RandomAccessFile classes?
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.
2013-01-08, 2524👍, 0💬

What is the purpose of the enableEvents() method?
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 th...
2013-01-07, 1995👍, 0💬

What is a void return type?
What is a void return type? A void return type indicates that a method does not return a value.
2013-01-07, 2010👍, 0💬

Are true and false keywords?
Are true and false keywords? The values true and false are not keywords.
2013-01-04, 1982👍, 0💬

What are E and PI?
What are E and PI? E is the base of the natural logarithm and PI is mathematical value pi.
2013-01-04, 2078👍, 0💬

What classes of exceptions may be thrown by a throw statement?
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.
2013-01-03, 1981👍, 0💬

What is the Set interface?
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.
2013-01-03, 2079👍, 0💬

If an object is garbage collected, can it become reachable again?
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.
2013-01-02, 2181👍, 0💬

What an I/O filter?
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.
2013-01-02, 2066👍, 0💬

How are the elements of a GridLayout organized?
How are the elements of a GridLayout organized? The elements of a GridBad layout are of equal size and are laid out using the squares of a grid.
2013-01-01, 1988👍, 0💬

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