Skip to content

Commit

Permalink
Clarify the meaning of unchecked exceptions in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rkabhishek committed Aug 23, 2024
1 parent a347d74 commit 9a5dc59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ You don't have to declare them in the [method signature](https://docs.oracle.com

### Examples of where they are used

Unchecked exceptions are meant to be used for any error that can't be handled at runtime, e.g. running out of memory.
Unchecked exceptions are typically caused by defects in the program and can be prevented by proper coding. Example: ArrayIndexOutOfBoundsException can be prevented by ensuring that the array indices are between 0 and the array's length.

Check failure on line 37 in exercises/practice/error-handling/.docs/instructions.append.md

View workflow job for this annotation

GitHub Actions / Lint Markdown files

Files should end with a single newline character

exercises/practice/error-handling/.docs/instructions.append.md:37:236 MD047/single-trailing-newline Files should end with a single newline character https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md047.md

0 comments on commit 9a5dc59

Please sign in to comment.