java异常处理 Exception.ppt

java异常处理 Exception

Exception Unit Objectives Understand the Throwable hierarchy Distinguish between Errors and Exceptions Distinguish between Runtime and Checked Exceptions Use try/catch/finally constructs to handle Exceptions Use throw and throws to pass propagate Exceptions Create user-defined Exceptions Use overriding with Exceptions Exception Any exceptions you create should extend Exception. Creating Exception When an Exception Occurs You can take one of four possible actions: Ignore the exception if unchecked Handle it with a try/catch statement Throw the exception to the calling method Handle the except

文档评论(0)

1亿VIP精品文档

相关文档