throws 關鍵字放在方法簽名的尾部。 throw 示例: public class ThrowDemo { public static void f() { try { throw new RuntimeException("拋出一個異常"); ...
確定! 回上一頁