摘要:
http://blog.csdn.net/xad707348125/article/details/44983861 父类有方法fun(),子类重写了该方法。 父类的方法需要抛出异常,子类的方法是否要同样抛出异常?抛出同样的异常?能否抛出父类没有的异常?还是一定要抛出父类所抛出异常范围内的异常? 记 阅读全文
摘要:
Excepiton分两类:checked exception、runtime exception;直接继承自Exception就是checked exception,继承自RuntimeException就是runtime的exception。 你可以简单地理解checked exception就是 阅读全文