Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

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:

©2025 WithoutBook