public class AskAQuestion{
public static void main(String[] args){ } void myException (int m) throws ArithmeticException{ }
}class TestExtendsException extends AskAQuestion {
void myEception (int m) throws ArithmeticException,Exception{ }
}继承的时候不是不能抛出更多的异常么???这样写为什么编译没有报错啊!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货