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

Verified
Correct Answer:
Verified
Q13: In a catch statement, what does the
Q14: To write data to a binary file,
Q15: In Java there are two categories of
Q16: In the following code, assume that inputFile
Q17: All of the exceptions that you will
Q19: If the class SerializedClass contains references to
Q20: To read data from a binary file,
Q21: When you deserialize an object using the
Q22: In a multi-catch (introduced in Java 7)
Q23: When an exception is thrown _.<br>A) it