IO Input Output Flashcards
1
Q
Do IO operations typically use checked or unchecked exceptions?
A
Checked exceptions, which must be handled.
example: FileNotFoundException
IOException
2
Q
Why do files need to be closed?
A
To make sure all buffers are cleared and all write operations are completed.