Finally | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Finally

What if finally also has an error

26th Jun 2020, 3:47 PM
Bhavik Bansal
Bhavik Bansal - avatar
1 ответ
+ 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