C# Throw and try catch

The throw statement is used to through an exception during the program execution. The thrown exception is usually of type System.Exception. Usually the throw statement is used with try-catch statements. The try statement provide a mechanism for catching the exception that occur during the execution of the code.The code to handle the exception is provided within the catch block. The code within the finally block is always executed when the control leaves the try statement.


Divide By Zero Exception !
Finally statement executed