如果函數會拋出例外,那麼可以將函數的呼叫撰寫在try-catch-finally 區塊。 ... public static void abc(int a,int b) throws ArithmeticException.
確定! 回上一頁