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

Core Java (Part XI) Interview Questions and Answers

What is the difference between a break statement and a continue statement?
A break statement results in the termination of the statement to which it applies (switch, for, do, or while). A continue statement is used to end the current loop iteration and return control to the loop statement.
What must a class do to implement an interface?
It must provide all of the methods in the interface and identify the interface in its implements clause.

What method is invoked to cause an object to begin executing as a separate thread?
The start() method of the Thread class is invoked to cause an object to begin executing as a separate thread.
Name two subclasses of the TextComponent class.
TextField and TextArea

Oracle (Part VI) Interview Question and Answers

It is possible to use raw devices as data files and what is the advantages over file. system files ?
Yes. The advantages over file system files. I/O will be improved because Oracle is bye-passing the kernnel which writing into disk. Disk Corruption will be very less.
What are disadvantages of having raw devices ?
We should depend on export/import utility for backup/recovery (fully reliable) The tar command cannot be used for physical file backup, instead we can use dd command which is less flexible and has limited recoveries.
What is the significance of having storage clause ?
We can plan the storage for a table as how much initial extents are required, how much can be extended next, how much % should leave free for managing row updations etc.,