Fill in the blank in the following code snippet to create an object for reading binary data from a disk file, named input.bin?
try (______________________________)
{
Process input
}
A) FileReader in = new FileReader("input.bin") ;
B) FileWriter in = new FileWriter("input.bin") ;
C) PrintWriter in = new PrintWriter("input.bin") ;
D) FileInputStream in = new FileInputStream("input.bin") ;
Correct Answer:
Verified
Q1: Which class is used for input of
Q2: Which class is used for output of
Q3: Which class is used for input of
Q5: Which class is used for output of
Q6: In text format, data items are represented
Q7: Which file storage method stores data in
Q8: Which class is used for input of
Q9: Which class is used for input of
Q10: Which class is used for output of
Q11: Streams access sequences of _.
A)bytes
B)files
C)characters
D)strings
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