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 IOException 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
Q35: The numeric classes' parse methods all throw
Q36: The throws clause causes an exception to
Q37: When an object is serialized, it is
Q38: The throw statement informs the compiler that
Q39: Given the following constructor code, which of
Q41: In a try/catch construct, after the catch
Q42: The ability to catch multiple types of
Q43: Unchecked exceptions are those that inherit from
Q44: The call stack is an internal list
Q45: When using the throw statement, if you