public void division(int num1, int num2)
{
    try
    {
        result = num1 / num2;
    }
    catch (DivideByZeroException e)
    {
        Console.WriteLine("Exception caught: {0}", e);
    }
    finally
    {
        Console.WriteLine("Result: {0}", result);
    }
}
it's an interview question , how i prevent program from enter finally, return value directly without using exit(0) . i used to return directly after catch but it doesn't work
 
     
     
    