+ 9
Is there any way to skip Finally block of exception even if some exception occurs in the exception block?
🔥🔥🔥🔥🔥
2 Respostas
+ 7
Finally block is executed whether or not an exception was thrown as I understand (cmiiw). I guess the only way would be to omit the finally block, and just use try...catch block pair.
P.S. Please tag a relevant language to improve context clarity 👍
+ 4
Only way is to use exit program statement before finally set to executed.. It's different in different program,. In which Language, tag it....