Solved

What Will Be the Result of the Following Statements? FileOutputStream

Question 33

Multiple Choice

What will be the result of the following statements? FileOutputStream fstream = new FileOutputStream("Output.dat") ;
DataOutputStream outputFile = new DataOutputStream(fstream) ;


A) The outputFile variable will reference an object that is able to write text data only to the Output.dat file.
B) The outputFile variable will reference an object that is able to write binary data to the Output.dat file.
C) The outputFile variable will reference an object that is able to read binary data from the Output.dat file.
D) The outputFile variable will reference an object that is able to write binary data to the Output.dat as a random access file.

Correct Answer:

verifed

Verified

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

Related Questions