Multiple Choice
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
Correct Answer:
Verified
Q28: What will the following code display? String
Q29: A file that contains raw binary data
Q30: If a random access file contains a
Q31: In versions of Java prior to Java
Q32: When you write a method that throws
Q34: In order for an object to be
Q35: The numeric classes' parse methods all throw
Q36: The throws clause causes an exception to
Q37: When an object is serialized, it is
Q38: The throw statement informs the compiler that