Look at the following code: FileInputStream fstream =
New FileInputStream("MyInfo.dat") ;
DataInputStream inputFile =
New DataInputStream(fstream) ;
This code can also be written as:
A) FileInputStream inputFile = new FileInputStream(new DataInputStream("MyInfo.dat") ) ;
B) DataInputStream inputFile = new DataInputStream(new FileInputStream("MyInfo.dat") ) ;
C) FileInputStream fstream = new DataInputStream("InputFile.txt") ;
D) DataInputStream inputFile = new DataInputStream("InputFile.txt") ;
Correct Answer:
Verified
Q25: Under Windows, which of the following statements
Q25: The try statement may have an optional
Q26: Assume that the classes BlankISBN, NegativePrice, and
Q27: If a method does not handle a
Q28: This is a section of code that
Q29: Unchecked exceptions are those that inherit from:
A)
Q31: When writing a string to a binary
Q32: If the program does not handle an
Q33: In a multi-catch, (introduced in Java 7)
Q35: What will be the result of the
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