did*_*ido 2 java exception try-catch
考虑到下面的代码,如果catch子句中抛出异常,最终是否仍会运行?
try {
//code here throws exception
}
catch(Exception ex) {
//code catches above exception however code here also throws another exception
}
finally {
//does this code even run considering the exception thrown in the above catch clause??
}
Run Code Online (Sandbox Code Playgroud)