若想要自行丟出例外,您可以使用"throw" 關鍵字,並生成指定的例外物件,例如: throw new ArithmeticException();. 舉個例子來說明,在Java 的除法中,允許浮點數運算時除 ...
確定! 回上一頁