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.
b. The file, data.dat, will be created.
Computer Science & Information Technology
You might also like to view...
By default, the Favorites Bar is NOT active
Indicate whether the statement is true or false
Computer Science & Information Technology
Discuss at least three advantages of including a primary key in a table.
What will be an ideal response?
Computer Science & Information Technology
The ____________________ button allows you to merge several cells into one cell and center the text in the merged cell.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
There is no pass-by-reference in the C language.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology