一个try块可以有
(1)有一个finally块,无catch块
(2)有一个或多个相关的catch块,无finally块
(3)包含一个或多个catch块,同时有一个finally块
一个try块可以有
(1)有一个finally块,无catch块
(2)有一个或多个相关的catch块,无finally块
(3)包含一个或多个catch块,同时有一个finally块
上一篇:Object-c NSNumber与int直接的转换
下一篇:c# 中的各种注释
常常被应用在异常情况处理中。在try的代码块中可能是一段会发生异常情况的程序,而
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M