mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Update Java基础知识.md
修改文本错误"NullPointExecrption"改为"NullPointException" 位于3.2异常中的 3.2.1
This commit is contained in:
parent
b2cfcb6a20
commit
b52c52bf07
@ -1225,7 +1225,7 @@ Java 代码在编译过程中,如果受检查异常没有被 `catch`/`throw`
|
|||||||
|
|
||||||
Java 代码在编译过程中 ,我们即使不处理不受检查异常也可以正常通过编译。
|
Java 代码在编译过程中 ,我们即使不处理不受检查异常也可以正常通过编译。
|
||||||
|
|
||||||
`RuntimeException` 及其子类都统称为非受检查异常,例如:`NullPointExecrption`、`NumberFormatException`(字符串转换为数字)、`ArrayIndexOutOfBoundsException`(数组越界)、`ClassCastException`(类型转换错误)、`ArithmeticException`(算术错误)等。
|
`RuntimeException` 及其子类都统称为非受检查异常,例如:`NullPointException`、`NumberFormatException`(字符串转换为数字)、`ArrayIndexOutOfBoundsException`(数组越界)、`ClassCastException`(类型转换错误)、`ArithmeticException`(算术错误)等。
|
||||||
|
|
||||||
#### 3.2.2. Throwable 类常用方法
|
#### 3.2.2. Throwable 类常用方法
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user