第2讲 Java语法基础(15)

2021-01-20 15:21

1.2 and Reserved Words 绪Keyword 论The following are keywords used in error handling: try Block of code that will be tried, but which may cause an exception. (可能产生异常的代码块) catch Declares the block of code used to handle an exception. (处理异常的代码块) finally Block of code, usually following a try-catch statement, which is executed no matter what program flow occurs when dealing with an exception. (当异常出现时,最终必须执行的代码块) throw Used to pass an exception up to the method that called this method. (抛出异常给调用方法) throws Indicates the method will pass an exception to the method that called it. (指定会抛出异常的方法) assert Evaluates a conditional expression to verify the programmer s assumption. (计算条件表达式,以检验程序员的假设)

Java Programming, spring, 2012


第2讲 Java语法基础(15).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:C++ C语言 程序设计 简单的学生成绩管理系统

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: