Solved

Look at the Following Code

Question 32

Multiple Choice

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:

verifed

Verified

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

Related Questions