0 votes
by (1.3k points)

1 Answer

0 votes
by (1.1k points)
A finally block is always get executed whether the exception has occurred or not. Exit() or some similar code is written into try block then the program will automatically terminate and the finally block will not be executed in this case.
Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
...