What is the difference between a static and a non-static inner class?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object... Read more »
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object... Read more »
String objects are constants. StringBuffer objects are not. Read more »
A private variable may only be accessed within the class in which it is declared. Read more »
An object’s lock is a mechanism that is used by multiple threads to obtain synchronized access to the object. A thread may execute a synchronized method of an... Read more »
The elements of a BorderLayout are organized at the borders (North, South, East, and West) and the center of a container. Read more »
A reachable object cannot be garbage collected. Only unreachable objects may be garbage collected. Read more »
It is written x ? y : z. Read more »
The FontMetrics class is used to define implementation-specific properties, such as ascent and descent, of a Font object. Read more »
The fractional part of the result is truncated. This is known as rounding toward zero. Read more »
If a thread attempts to execute a synchronized method or synchronized statement and is unable to acquire an object’s lock, it enters the waiting state until the... Read more »
The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented. Read more »
A catch clause can catch any exception that may be assigned to the Throwable type. This includes the Error and Exception types. Read more »
A class that is declared without any access modifiers is said to have package access. This means that the class can only be accessed by other classes and interfaces... Read more »
The SimpleTimeZone class provides support for a Gregorian calendar. Read more »
The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values.99. Read more »
A class does not inherit constructors from any of its super classes. Read more »
The only statements for which it makes sense to use a label are those statements that can enclose a break or continue statement. Read more »
The purpose of the System class is to provide access to system resources. Read more »
setEditable() Read more »
The elements of a CardLayout are stacked, one on top of the other, like a deck of cards. Read more »