• +91 9723535972
  • info@interviewmaterial.com

OOP Interview Questions and Answers

Question - What is a finally block?

Answer -

A finally block consists of code that is used to execute important code such as closing a connection, etc. This block executes when the try block exits. It also makes sure that finally block executes even in case some unexpected exception is encountered.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners