
```mermaid
classDiagram
Throwable <|-- Error
Throwable <|-- Exception
Exception <|-- RuntimeException
Exception <|-- CheckedException
Error --> UncheckedException
RuntimeException --> UncheckedException
class Throwable{
<<Abstract>>
}
class Error{
<<Error>>
}
class Exception{
+All subclasses except RuntimeException
are Checked Exceptions
}
class RuntimeException{
<<RuntimeException>>
}
class CheckedException{
<<Checked>>
}
class UncheckedException{
<<Unchecked>>
}
```
[Throwable@](
[email protected])
- [[Error]](非受检异常)
- [OOM](OOM.md)
- [StackOverFlow](StackOverFlow.md)
- [[RuntimeException]](非受检异常)
- [[CheckedException]](受检异常)
> [!第一性原理]
> 受检和不受检,指的是受不受编译器的检查