Multiple Choice
Fill in the blank in the following code snippet to create an object for writing binary data to a disk file, named output.bin?
try (______________________________)
{
Process output
}
A) Writer out = new Writer("output.bin") ;
B) PrintWriter out = new PrintWriter("output.bin") ;
C) FileOutputStream out = new FileOutputStream("output.bin") ;
D) FileWriter out = new FileWriter("output.bin") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q33: The values of the byte type range
Q34: Which expression creates an empty file named
Q35: Given a RandomAccessFile that stores a set
Q36: Which statement is NOT correct about the
Q37: In Java, the byte type is a(n)
Q39: Which of the following classes are related
Q40: In text format, data items are represented
Q41: The readInt and writeInt methods of the
Q42: Objects saved to an object stream must
Q43: You cannot read a _ file with