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
Q7: The call stack is an internal list
Q10: The throws clause causes an exception to
Q15: When the code in a try block
Q20: A catch clause that uses a parameter
Q39: The catch clause:
A) follows the try clause
B)
Q40: If the IOData.dat file does not exist,
Q43: What will be the result of the
Q45: In versions of Java prior to Java
Q46: Beginning in Java 7, multi-catch can reduce
Q47: When deserializing an object using the readObject
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents