Minhaj Hussain
How to handle Exceptions that occur in the finally block ?
By Minhaj Hussain in C# on Sep 17 2015
  • Sunil Babu
    Apr, 2016 2

    Purpose of finally block is releasing resources or allocations.So there should not be any exception.

    • 0
  • Minhaj Hussain
    Sep, 2015 17

    Three Things happen when finally block throws an ExceptionOne: The Exception Propogates up and should be handled at a high level. If not handled at higher level, the application crashesTwo: The finally block execution stops at the point where the exception was thrown.Three: A) If the finally block is being executed after an exception has occurred in the try block B)and if that exception is not handledC)and if finally block throws an exception then the original exception that occurred in the try block is lost.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS