Multiple Choice
What will be the result of the following statements?
FileInputStream fstream =
New FileInputStream("DataIn.dat") ;
DataInputStream inFile =
New DataInputStream(fstream) ;
A) The inFile variable will reference an object that is able to read only text data from the Input.dat file.
B) The inFile variable will reference an object that is able to read binary data from the Input.dat file.
C) The inFile variable will reference an object that is able to write binary data to the Input.dat file.
D) The inFile variable will reference an object that is able to read random access data from the Input.dat file.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: To serialize an object and write it
Q3: If, within one try statement you want
Q4: Why does the following code cause a
Q6: The exception classes are in packages in
Q7: In order for an object to be
Q8: When an exception is thrown:<br>A) it must
Q9: A class must implement the Serializable interface
Q10: In a catch statement, what does the
Q11: When an exception is thrown by code
Q19: If the class SerializedClass contains references to