Finally | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Finally

What if finally also has an error

26th Jun 2020, 3:47 PM
Bhavik Bansal
Bhavik Bansal - avatar
1 Resposta
+ 3
Finally blocks are generally used to execute a piece of code that should run irrespective of the program which may or may not throw an exception. If your finally block has a code that gives an error or exception then it will be there in the output of the code as well.
26th Jun 2020, 3:57 PM
Avinesh
Avinesh - avatar