When all the contents of a file are truncated, this means that ________.
a. the data in the file is saved to a backup file
b. the file is deleted
c. a FileNotFoundException occurs
d. all the data in the file is discarded
d. all the data in the file is discarded
You might also like to view...
If I declare an array of 2000 Student objects (assume Student is a class I’ve written), is a class’ constructor function called before or after I start using the Student array elements? Explain. Which (if any) class constructor is called.
What will be an ideal response?
Delayed writing normally causes a modified buffer to be flushed when its RAM is needed, not when its file is closed. An alternative method is to flush modified buffers when disk traffic is low, thereby making the best use of the idle time. Critique this strategy.
What will be an ideal response?