One: Inheritance relationship of Exception class
is a subclass of Throwable:
1.Exception (Exception): An exception that the program itself can handle.
2.Error (Error): An error that the program cannot handle. These errors indicate that the failure occurred on the virtual machine itself, or when the virtual machine attempted to execute the application, and generally did not require program processing .
3. Check for exceptions (exceptions that the compiler requires to be disposed of ): In addition to Error,runtimeexception and its subclasses, other exception classes and their subclasses are considered exceptions. This exception is characterized by the Java compiler checking it, that is, when such an exception can occur in a program, either by capturing it with a try-catch statement or by declaring it with a throws clause, or the compilation will not pass.
4. Non-check exception (compiler does not require disposition of exceptions): Includes run-time exceptions (RuntimeException with its subclasses) and errors (error).
An essay on exception classes in Java