Is there any way to skip Finally block of exception even if some exception occurs in the exception block? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 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 šŸ‘
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 šŸ‡®šŸ‡³