16
Reply

what happens when an exception raise in Final block ?

    kindly read below linkhttp://www.c-sharpcorner.com/uploadfile/955025/exception-in-finally-block/

    after this the program will not execute

    This exception will be handled at higher level and execution will not be proceeded in final block

    That exception propagates out and up, and will (can) be handled at a higher level.Your finally block will not be completed beyond the point where the exception is thrown.If the finally block was executing during the handling of an earlier exception then that first exception is lost.

    If exception occurs in finally block. It will be raised, program will terminate and will not execute further.

    it will immediatly comes into catch block

    it will immediatly comes into catch block

    it will immediatly comes into catch block

    it will immediatly comes into catch block

    it will immediatly comes into catch block

    it will immediatly comes into catch block

    it will immediatly comes into catch block

    it will immediatly comes into catch block

    it will immediatly comes into catch block

    Statement terminates

    Statement not executed in final block