Solved

If the Data

Question 39

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions