Look at the following code:
FileInputStream fstream = new FileInputStream("info.dat") ; DataInputStream inputFile = new DataInputStream(fstream) ;
This code could also be written as
A) DataInputStream inputFile = new DataInputStream(new FileInputStream("info.dat") ) ;
B) DataInputStream inputFile = new DataInputStream("info.txt") ;
C) FileInputStream inputFile = new FileInputStream(new DataInputStream("info.dat") ) ;
D) FileInputStream fstream = new DataInputStream("info.txt") ;
Correct Answer:
Verified
Q12: When you write a method that throws
Q15: If a program does not handle an
Q16: When an object is serialized, it is
Q19: A(n) _ is one or more statements
Q20: Beginning in Java 7, you can use
Q21: When an exception is thrown _.
A) it
Q22: When catching multiple exceptions that are related
Q23: A file that contains raw binary data
Q40: A(n) _ is an object that is
Q58: What will the following code display? String
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