Solved

Which of the Statements Below Give an Alternative Way to Write

Question 13

Multiple Choice

Which of the statements below give an alternative way to write the following: FileInputStream fstream = new FileInputStream("info.dat") ;
DataInputStream inputFile = new DataInputStream(fstream) ;


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