+ 9

Is there any way to skip Finally block of exception even if some exception occurs in the exception block?

🔥🔥🔥🔥🔥

24th Nov 2020, 11:04 AM
Aqsa
Aqsa - avatar
2 odpowiedzi
+ 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 👍
24th Nov 2020, 11:10 AM
Ipang
+ 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....
24th Nov 2020, 11:57 AM
Jayakrishna 🇮🇳