[Java] Classes that require exception handling

less than 1 minute read

Checked exceptions mean that there is no file that should be opened, etc. Exception handling is essential because it is a situation that can occur depending on the situation regardless of the program failure.

ClassNotFondException

A subclass of the Excption class. Occurs when the class cannot be loaded. Exception handling is mandatory.

IOException

A subclass of the Exception class. This occurs when using the I/O function. Exception handling is mandatory.

FileNotFoundException

A subclass of the Exception class. It occurs when the target file does not exist when reading or writing the file. Exception handling is mandatory.

Tags:

Updated: