與上篇不同在於throw 是否有加s,兩者關鍵字是有不同的。 函數內部拋出例外,使用throw ... public static void abc(int a,int b) throws ArithmeticException.
確定! 回上一頁