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
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库第2讲 Java语法基础(15)在线全文阅读。
相关推荐: