What will be the result of the following statements? FileOutputStream fstream = new FileOutputStream("Output.dat") ;
DataOutputStream outputFile = new DataOutputStream(fstream) ;
A) The outputFile variable will reference an object that is able to write text data only to the Output.dat file.
B) The outputFile variable will reference an object that is able to write binary data to the Output.dat file.
C) The outputFile variable will reference an object that is able to read binary data from the Output.dat file.
D) The outputFile variable will reference an object that is able to write binary data to the Output.dat as a random access file.
Correct Answer:
Verified
Q43: When using the throw statement, if you
Q44: Classes that inherit from the Error class
Q45: The following catch statement can _. catch
Q46: If a method does not handle a
Q47: When an exception is thrown by code
Q49: In a catch statement, what does the
Q50: Assume that the classes BlankISBN, NegativePrice, and
Q51: What will be the result of the
Q52: Given the following constructor code, which of
Q53: If you want to append data to
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