Checked versus Unchecked Exceptions
Checked exceptions require you to catch the exceptions, while RuntimeExceptions do not. The basic
rule is that if the user of the API can do something reasonable about the exception then make it checked.
Checked exceptions require you to catch the exceptions, while RuntimeExceptions do not. The basic
rule is that if the user of the API can do something reasonable about the exception then make it checked.