diff --git a/.obsidian/plugins/keep-the-rhythm/data.json b/.obsidian/plugins/keep-the-rhythm/data.json index b40d059..eed3748 100644 --- a/.obsidian/plugins/keep-the-rhythm/data.json +++ b/.obsidian/plugins/keep-the-rhythm/data.json @@ -511,11 +511,11 @@ } }, "2025-08-18": { - "totalDelta": 334, + "totalDelta": 461, "files": { "A1-Work/语言/Java/基础学习.md": { "initial": 7534, - "current": 7868 + "current": 7995 } } } diff --git a/A1-Work/语言/Java/基础学习.md b/A1-Work/语言/Java/基础学习.md index 947b9e0..efc2006 100644 --- a/A1-Work/语言/Java/基础学习.md +++ b/A1-Work/语言/Java/基础学习.md @@ -319,3 +319,16 @@ Error 为系统内部错误,不应该由应用程序抛出,应用程序应 > [!warning] 注意 > 一个方法必须声明所有可能抛出的已检查异常,而未检查异常要么不可控(Error),要么就避免发生(RuntimeException)。 + + +## JDK 特性 + +### JDK7 +1. 合并的 `catch` 子句: +```Java +try { + code +} catch (FileNotFoundException | UnknownHostException e) { + code +} +``` \ No newline at end of file