Multiple Choice
Look at the following code: FileInputStream fstream =
New FileInputStream("MyInfo.dat") ;
DataInputStream inputFile =
New DataInputStream(fstream) ;
This code can also be written as:
A) FileInputStream inputFile =
New FileInputStream(new DataInputStream("MyInfo.dat") ) ;
B) DataInputStream inputFile =
New DataInputStream(new FileInputStream("MyInfo.dat") ) ;
C) FileInputStream fstream =
New DataInputStream("InputFile.txt") ;
D) DataInputStream inputFile =
New DataInputStream("InputFile.txt") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q1: To serialize an object and write it
Q9: A class must implement the Serializable interface
Q13: What will the following code display?<br>String input
Q15: All exceptions are instances of classes that
Q18: All of the exceptions that you will
Q19: Given the following constructor code,which of the
Q19: To read data from a binary file
Q25: A catch clause that uses a parameter
Q44: The call stack is an internal list
Q50: Classes that inherit from the Error class