8000 Update Java基础知识->异常处理 · yab/JavaGuide@55f795e · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 55f795e

Browse files
committed
Update Java基础知识->异常处理
1 parent 0df0d81 commit 55f795e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Java相关/Java基础知识.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ final关键字主要用在三个地方:变量、方法、类。
418418

419419
**在以下4种特殊情况下,finally块不会被执行:**
420420

421-
1. 在finally语句块中发生了异常。
422-
2. 在前面的代码中用了System.exit()退出程序。
421+
1. 在finally语句块第一行发生了异常。 因为在其他行,finally块还是会得到执行
422+
2. 在前面的代码中用了System.exit(int)已退出程序。 exit是带参函数 ;若该语句在异常语句之后,finally会执行
423423
3. 程序所在的线程死亡。
424424
4. 关闭CPU。
425425

0 commit comments

Comments
 (0)
0