If the IOData.dat file does not exist, what will happen when the following statement is executed?
RandomAccessFile randomFile =
New RandomAccessFile("IOData.dat", "rw") ;
A) A FileNotFoundException will be thrown.
B) An IOExcepton will be thrown.
C) The file IOData.dat will be created.
D) This is a critical error, the program will stop execution.
Correct Answer:
Verified
Q10: The throws clause causes an exception to
Q15: When the code in a try block
Q35: What will be the result of the
Q36: When an exception is thrown by code
Q37: Classes that inherit from the Error class
Q38: In a catch statement, what does the
Q39: The catch clause:
A) follows the try clause
B)
Q43: What will be the result of the
Q44: If you want to append data to
Q45: In versions of Java prior to Java
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents