Web程序设计作者祁长兴_chapter11课案.pptVIP

  • 38
  • 0
  • 约 65页
  • 2017-03-03 发布于广东
  • 举报
Web程序设计作者祁长兴_chapter11课案.ppt

习题二:选择题 3) 下面的代码最终引发的异常有      。 A.ArgumentNullException B.OverflowException C.NullReferenceException D.ApplicationException 习题二:选择题 try{ try { throw new FormatException(); } catch { throw new ArgumentNullException(); } } catch{ try { throw new OverflowException(); } finally {throw new NullReferenceException(); } } finally { try { throw new ArgumentOutOfRangeException(); } catch { throw new ApplicationException(); } } 习题二:选择题 4) 下面关于异常处理形式描述,错误的是      。 A.try语句块后面必须紧跟catch语句块 B.try语句块后面必须紧跟多个catch语句块 C.可以省略catch语句块或者finally语句块,但两者不能同时省略 D.如果有catch语句块的话,f

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档