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.
You might also like to view...
As a(n) ________ list grows, older files are removed to make room for more recently modified files
Fill in the blank(s) with correct word
Match the following features or parts of Office 2010 to their description:
I. contextual tab A. easy access to formatting commands II. Mini toolbar B. contains groups of commands related to a specific, selected object III. title bar C. set of selections when you click a More button IV. gallery D. contains information relative to the open file V. status bar E. includes file name and application