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
Q5: If, within one try statement you want
Q15: When the code in a try block
Q18: The IllegalArgumentException class extends the RuntimeException class,and
Q21: In order for an object to be
Q27: If a method does not handle a
Q29: Unchecked exceptions are those that inherit from:
A)
Q35: What will be the result of the
Q38: In a catch statement, what does the
Q43: What will be the result of the
Q51: What will the following code display?
String input
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