Multiple Choice
If you want to append data to the existing binary file, BinaryFile.dat, use the following statements 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) FileOutputStream fstream = new FileOutputStream("BinaryFile.dat") ;
DataOutputStream binaryOutputFile =
New DataOutputStream(fstream, true) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q17: Unchecked exceptions are those that inherit from:<br>A)
Q18: All of the exceptions that you will
Q19: To read data from a binary file
Q20: Given the following constructor code, which of
Q21: What is demonstrated by the following code?<br>Try<br>{<br>(try
Q23: If the IOData.dat file does not exist,
Q25: A(n) _ is an object that is
Q26: When writing a string to a binary
Q36: The throws clause causes an exception to
Q44: The call stack is an internal list