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
Q3: To write data to a binary file
Q6: All exceptions are instances of classes that
Q8: If the code in a method can
Q10: A(n) _ is an object that is
Q11: To read data from a binary file
Q12: All of the exceptions that you will
Q28: This is a section of code that
Q28: In a try/catch construct, after the catch
Q31: When writing a string to a binary
Q56: In the following code, assume that inputFile
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents