Math, asked by Anonymous, 5 months ago

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

Answers

Answered by Anonymous
3

Step-by-step explanation:

\LARGE{\bf{\underline{\underline\color{blue}{    Required \: Answer}}}}

  • The finally block follows a try block or a catch block. ... You cannot skip the execution of the final block. Still if you want to do it forcefully when an exception occurred, the only way is to call the System. exit(0) method, at the end of the catch block which is just before the finally block

\huge\underline{\overline{\mid{\bold{\red{Hope \:it \:helps\: you}}\mid}}}

Answered by Anonymous
2

Answer:

your answer Thor di

Step-by-step explanation:

The finally block follows a try block or a catch block. ... You cannot skip the execution of the final block. Still if you want to do it forcefully when an exception occurred, the only way is to call the System. exit(0) method, at the end of the catch block which is just before the finally block.

Similar questions