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:

Verified
Correct Answer:
Verified
Q45: When using the throw statement, if you
Q46: Beginning with Java7, to catch multiple exceptions
Q47: All exceptions are instances of classes that
Q48: When catching multiple exceptions that are related
Q49: If the code in a method can
Q51: In a try statement, the try clause
Q52: A class must implement the Serializable interface
Q53: Classes that inherit from the Error class
Q54: The following catch statement can _. catch
Q55: When the code in a try block