Observe o método C# a seguir:
public static void Main()
{ try { try { int x = 0;
int y = 10 / x;
} catch (DivideByZeroException){ Console.Write(“1”);
throw;
} catch (ArithmeticException){ Console.Write(“2”);
throw;
} catch (Exception){ Console.Write(“3”);
throw;
} } catch { Console.Write(“4”);
} }
A execução desse código vai imprimir no console a mensagem: