Exceptions are types of errors that occur in Standard Error which will occur during runtime. You can prevent these exceptions from crashing these programs using Java Try Catch Blocks

Types

Unchecked Exceptions

Do not require a Java Try Catch Blocks

Checked Exceptions

You are required to run these methods in a Java Try Catch Blocks, or declare that these exception will be thrown in the class header.