Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Finally
What if finally also has an error
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.