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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why do files need to be closed?

A

To make sure all buffers are cleared and all write operations are completed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly