What will be the result of the following statements? FileInputStream fstream = new FileInputStream("Input.dat") ;
DataInputStream inFile = new DataInputStream(fstream) ;
A) The inFile variable will reference an object that is able to read random access data from the Input.dat file.
B) The inFile variable will reference an object that is able to read text data from the Input.dat file.
C) The inFile variable will reference an object that is able to read binary data from the Input.dat file.
D) The inFile variable will reference an object that is able to write binary data to the Input.dat file.
Correct Answer:
Verified
Q46: If a method does not handle a
Q47: When an exception is thrown by code
Q48: What will be the result of the
Q49: In a catch statement, what does the
Q50: Assume that the classes BlankISBN, NegativePrice, and
Q52: Given the following constructor code, which of
Q53: If you want to append data to
Q54: If the data.dat file does not exist,
Q55: In Windows, which of the following statements
Q56: In the following code, assume that inputFile
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