【发布时间】:2016-05-01 19:13:03
【问题描述】:
1 try{
2 this line of code throws exceptions;
3 is this line of code ever executed?;
4 catch(MadeUpException ex){1
5 something happens in response to the exception!;
6 }
如果第一行代码抛出异常并且在处理异常时程序没有被杀死,是否执行第三行代码。
【问题讨论】:
-
否。第 3 行将被跳过。你可以自己尝试一下。
-
^^^这是一个简单的测试。只需编写一个类并执行它:/
标签: java error-handling try-catch