Core Java (Part XIII) Interview Questions and Answers


Name four Container classes.
Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane
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 list of available choices. Only one item may be selected from a Choice. A List may be displayed in such a way that several List items are visible. A List supports the selection of one or more List items.

What class of exceptions are generated by the Java run-time system?
The Java runtime system generates RuntimeException and Error exceptions.

What class allows you to read objects directly from a stream?
The ObjectInputStream class supports the reading of objects from input streams.

Core Java (Part XII) Interview Questions and Answers

For which statements does it make sense to use a label?
The only statements for which it makes sense to use a label are those statements that can enclose a break or continue statement.
What is the purpose of the System class?
The purpose of the System class is to provide access to system resources.

Which TextComponent method is used to set a TextComponent to the read-only state?
setEditable() 

Oracle (Part VII) Interview Question and Answers

How do you trap the error in forms 3.0 ?
using On-Message or On-Error triggers.
How many pages you can in a single form ?
Unlimited
While specifying master/detail relationship between two blocks specifying the join condition is a must ?
True or False. ?

True
EXIT_FORM is a restricted package procedure ?
a. True b. False

True