From 9edd3a0ca62f6cb7f9349861505deadd252c0a4b Mon Sep 17 00:00:00 2001 From: Kudzu Date: Mon, 18 Aug 2025 23:16:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AE=B0=E5=A4=87=E4=BB=BD=EF=BC=9A20?= =?UTF-8?q?25-08-18=2023:16:42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .obsidian/plugins/keep-the-rhythm/data.json | 4 ++-- A1-Work/语言/Java/基础学习.md | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) 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