Keywords for exception handling: Try, catch, throw, throws, finally
Error: Errors, cannot be recovered by the program itself
Exception: What we call an exception, it is divided into two categories, checked and runtime exceptions.
Java considers that checked exceptions are exceptions that can be handled at compile time, so it forces the program to handle all checked exceptions;
The runtime exception does not need to be processed.
=================================================================================================
ArithmeticException----> Arithmetic error: except 0
nullpointexception----> Accessing null Object Members
ClassCastException----> Object cast error
ArrayIndexOutOfBoundsException----> Array subscript out of bounds
NumberFormatException----> Number format exception
ClassNotFoundException----> Cannot load the required classes
Inputmismatchexception----> Input mismatch
IllegalArgumentException----> Illegal parameters
Java Exception Handling