Multiple Choice
If the data.dat file does not exist, what will happen when the following statement is executed?
RandomAccessFile randomFile = new RandomAccessFile("data.dat", "rw") ;
A) An IOExcepton will be thrown.
B) The file data.dat will be created.
C) A FileNotFoundException will be thrown.
D) A compiler error will occur.
Correct Answer:

Verified
Correct Answer:
Verified
Q21: When you deserialize an object using the
Q30: If a random access file contains a
Q32: Look at the following code:<br>FileInputStream fstream =
Q32: When you write a method that throws
Q36: Classes that inherit from the Error class
Q37: When writing a string to a binary
Q38: A file that contains raw binary data
Q42: The ability to catch multiple types of
Q56: The RandomAccessFile class treats a file as
Q59: A(n) _ is an object that is