Multiple Choice
What will be the result of the following code?
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 to Output.dat as a random access file.
Correct Answer:

Verified
Correct Answer:
Verified
Q7: In order for an object to be
Q8: When an exception is thrown:<br>A) it must
Q9: A class must implement the Serializable interface
Q10: In a catch statement, what does the
Q11: When an exception is thrown by code
Q13: What will the following code display?<br>String input
Q15: All exceptions are instances of classes that
Q16: The following catch statement can: catch (Exception
Q17: Unchecked exceptions are those that inherit from:<br>A)
Q57: The try statement may have an optional