Phase 1 Language Basics + Advanced _1-3-Java language senior _05- abnormal and multi-threaded _ Section 1 abnormality Notes _ _12_ abnormal abnormal child the parent class







Subclasses override the parent class method does not throw an exception


parent class method does not throw an exception, then the subclass overrides, you also can not throw an exception. The following exception is thrown on the error.

Subclass own internal throws an exception does not work,


the subclass can only try catch to catch the exception





 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11249483.html