還有一種是自行拋出例外也就是利用throw來進行 static void openSocket() throws IOException { throw new IOException("自己拋出"); }.
確定! 回上一頁