Because checked exceptions are part of a method's signature, you can't add one to an overriding variant any more than you can change its return type.
因为checked异常是方法签名的一部分,在覆盖方法时,不能增加checked异常,就像不能改变return类型一样。
Because checked exceptions are part of a method's signature, you can't add one to an overriding variant any more than you can change its return type.
因为checked异常是方法签名的一部分,在覆盖方法时,不能增加checked异常,就像不能改变return类型一样。
应用推荐