Home » C++ Programming » Exception Handling » Question
  1. What is the use of the ‘finally’ keyword?
    1. It will be executed at the starting of the program even if the exception arised
    2. It used to execute at the starting of the program
    3. It will be executed at the end of the program even if the exception arised
    4. All of above
    5. None of these
Correct Option: C

finally keyword will be executed at the end of all the exception.



Your comments will be displayed only after manual approval.