try catch try异常catch还会执行吗
时间: 2023-08-25 17:13:28 浏览: 103
c++中try catch的用法小结
5星 · 资源好评率100%
引用中提到,try-catch块用于处理异常。在try块中,如果发生了异常,会生成对应的异常对象并传递给catch块进行处理。catch块中的代码会执行处理异常的操作。所以,当发生异常时,try块中异常出现的那行代码之后的代码不会执行,而catch块会执行异常处理的代码。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* [【JavaSE】 try-catch 异常处理](https://blog.csdn.net/qq_41684621/article/details/123430351)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [java try catch 异常后还会继续执行吗](https://blog.csdn.net/qq_27346503/article/details/108418419)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文