Skip to content
Quiz · Exceptions · lesson 3 of 9

Quiz — catch order

What happens when this program is compiled and run?

C#
try
{
    Console.WriteLine(int.Parse("ten"));
}
catch (Exception)
{
    Console.WriteLine("general");
}
catch (FormatException)
{
    Console.WriteLine("format");
}