Skip to content

Glossary: Java Beyond the Basics

IOException

Also written: NoSuchFileException

The checked exception for failed file and network I/O, which the compiler makes you handle. NoSuchFileException is the kind thrown for a missing file, so catch it first.

Where the book teaches it

Related terms

FilesTry-with-resources