Solved

Look at the Following Code: FileInputStream Fstream =

Question 7

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents