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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents