Multiple Choice
Which of the statements below give an alternative way to write the following: FileInputStream fstream = new FileInputStream("info.dat") ;
DataInputStream inputFile = new DataInputStream(fstream) ;
A) DataInputStream inputFile = new DataInputStream(new FileInputStream("info.dat") ) ;
B) DataInputStream inputFile = new DataInputStream("info.txt") ;
C) FileInputStream inputFile = new FileInputStream(new DataInputStream("info.dat") ) ;
D) FileInputStream fstream = new DataInputStream("info.txt") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q1: When an exception is thrown by code
Q3: A(n) _ is a section of code
Q7: What happens if a program does not
Q9: A(n) _ contains one or more statements
Q10: Beginning with Java7, you can use _
Q17: All of the exceptions that you will
Q30: If a random access file contains a
Q32: When you write a method that throws
Q40: If the data.dat file does not exist,
Q48: When catching multiple exceptions that are related