Skip to content

Commit 67d52a2

Browse files
committed
Update Java基础知识.md
1 parent 70b8d30 commit 67d52a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/basis/Java基础知识.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ public class Test {
12951295
#### 3.2.4. 使用 `try-with-resources` 来代替`try-catch-finally`
12961296
12971297
1. **适用范围(资源的定义):** 任何实现 `java.lang.AutoCloseable`或者 `java.io.Closeable` 的对象
1298-
2. **关闭资源和 final 的执行顺序** 在 `try-with-resources` 语句中,任何 catchfinally 块在声明的资源关闭后运行
1298+
2. **关闭资源和 finally 块的执行顺序** 在 `try-with-resources` 语句中,任何 catchfinally 块在声明的资源关闭后运行
12991299
13001300
Effecitve Java》中明确指出:
13011301

0 commit comments

Comments
 (0)