Solved

Which of the Statements Below Give an Alternative Way to Write

Question 33

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

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