Multiple Choice
Look at the following code:
FileInputStream fstream = new FileInputStream("info.dat") ; DataInputStream inputFile = new DataInputStream(fstream) ;
This code could also be written as
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
Q18: What will be the result of the
Q21: When you deserialize an object using the
Q28: A(n) _ is one or more statements
Q30: If a random access file contains a
Q32: When you write a method that throws
Q36: Classes that inherit from the Error class
Q37: When writing a string to a binary
Q47: The throw statement informs the compiler that
Q56: The RandomAccessFile class treats a file as
Q59: A(n) _ is an object that is