-
-
-
-
-
-
-
-
Which containers use a border Layout as their default layout
The window, Frame and Dialog classes use a border layout as their default layout.
-
Can a lock be acquired on a class
Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object.
-
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.
-
Is null a keyword
The null value is not a keyword.
-
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.
-
What method is used to specify a container's layout
The setLayout() method is used to specify a container's layout.
-
Which containers use a FlowLayout as their default layout
The Panel and Applet classes use the FlowLayout as their default layout.
-
What state does a thread enter when it terminates its processing
When a thread terminates its processing, it enters the dead state.
-
What is the Collections API
The Collections API is a set of classes and interfaces that support operations oncollections of objects.
-
Which characters may be used as the second character of an identifier, but notas the firstcharacter of an identifier
The digits 0 through 9 may not be used as the first character of an identifier but they maybe used after thefirst character of an identifier.
-
What is the List interface
The List interface provides support for ordered collections of objects.
-
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 bythe operation.
-
What modifiers may be used with an inner class that is a member of an outerclass
A (non-local) inner class may be declared as public, protected, private, static, final, orabstract.
Java Interview Questions
Ans