Imagem de fundo

Observe o método C# a seguir:public static void Main(){try...

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:


A

14


B

34


C

1234


D

3214


E

4321