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
Q5: What will be the result of the
Q7: In order for an object to be
Q17: Unchecked exceptions are those that inherit from:<br>A)
Q23: If the IOData.dat file does not exist,
Q33: To write data to a binary file
Q37: Assume that the classes BlankISBN,NegativePrice,and NegativeNumberOrdered are
Q40: When you write a method that throws
Q41: In a try/catch construct, after the catch
Q45: If the code in a method can
Q53: An exception's default error message can be