Q. What's new with the stop(), suspend() and resume() methods in JDK 1.2?
The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.
Q. Is null a keyword?
The null is not a keyword.
Q. What is the preferred size of a component?
The preferred size of a component is the minimum component size that will allow the component to display normally.
Q. What method is used to specify a container's layout?
The setLayout() method is used to specify a container's layout.
Q. Which containers use a FlowLayout as their default layout?
The Panel and Applet classes use the FlowLayout as their default layout.
Q. What state does a thread enter when it terminates its processing?
When a thread terminates its processing, it enters the dead state.
Q. What is the Collections API?
The Collections API is a set of classes and interfaces that support operations on collections of objects.
Q. Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.
Q. What is the List interface?
The List interface provides support for ordered collections of objects.
Q. How does Java handle integer overflows and underflows?
It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
Q. What is the Vector class?
The Vector class provides the capability to implement a growable array of objects
Q. What modifiers may be used with an inner class that is a member of an outer class?
A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.
Comments
Post a Comment