Solved

If You Want to Append Data to an Existing Binary

Question 50

Multiple Choice

If you want to append data to an existing binary file, BinaryFile.dat, which of the following statements would you use to open the file?


A) FileOutputStream fstream =
New FileOutputStream("BinaryFile.dat") ;
DataOutputStream binaryOutputFile =
New DataOutputStream(fstream) ;
B) FileOutputStream fstream =
New FileOutputStream("BinaryFile.dat", false) ;
DataOutputStream binaryOutputFile =
New DataOutputStream(fstream) ;
C) FileOutputStream fstream =
New FileOutputStream("BinaryFile.dat", true) ;
DataOutputStream binaryOutputFile =
New DataOutputStream(fstream) ;
D) IFileOutputStream fstream =
New FileOutputStream("BinaryFile.dat") ;
DataOutputStream binaryOutputFile =
New DataOutputStream(fstream, true) ;

Correct Answer:

verifed

Verified

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

Related Questions