Quiz · Exceptions · lesson 3 of 9
Quiz — catch order
What happens when this program is compiled and run?
try
{
Console.WriteLine(int.Parse("ten"));
}
catch (Exception)
{
Console.WriteLine("general");
}
catch (FormatException)
{
Console.WriteLine("format");
}