Solved

If the Data

Question 40

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:

verifed

Verified

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

Related Questions