捕获与处理异常

try{}

catch(AException e1){}

catch(BException e2){}

catch(Exception e){}

finally{}

注:越具体的异常越写在前面。

posted @ 2020-05-09 20:05  流星曳尾  阅读(107)  评论(0编辑  收藏  举报