-
Is null a keyword
The null value is not a keyword.
-
-
-
-
-
-
What is the List interface
The List interface provides support for ordered collections of objects.
-
What happens when you add a double value to a String
The result is a String object.
-
-
How can a GUI component handle its own events
A component can handle its own events by implementing the required event-listenerinterface and adding itself as its own event listener.
-
What class allows you to read objects directly from a stream
The ObjectInputStream class supports the reading of objects from input streams.
-
What are E and PI
E is the base of the natural logarithm and PI is mathematical value pi.
-
What is the Set interface
The Set interface provides methods for accessing the elements of a finite mathematicalset. Sets do not allow duplicate elements.
-
What an I/O filter
An I/O filter is an object that reads from one stream and writes to another, usuallyaltering the data in some way as it is passed from one stream to another.
-
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 listof available choices. Only one item may be selected from a Choice. A List may bedisplayed in such a way that several List items are visible. A List supports the selectionof one or more List items.
-
Which non-Unicode letter characters may be used as the first characterof an identifier
The non-Unicode letter characters $ and _ may appear as the first character of anidentifier
-
How can the Checkbox class be used to create a radio button
By associating Checkbox objects with a CheckboxGroup.
-
What methods are used to get and set the text label displayed by a Button object
getLabel() and setLabel()
-
What is the purpose of a statement block
A statement block is used to organize a sequence of statements as a single statementgroup.
-
What is the difference between a public and a non-public class
A public class may be accessed outside of its package. A non-public class may not beaccessed outside of its package.
Java Interview Questions
Ans