Question: What is the purpose of the 'finally' block in exception handling?Answer: The 'finally' block is used to execute important code such as closing resources, whether an exception is thrown or not. |
Is it helpful?
Yes
No
Most helpful rated by users: