Menu
×
×
Correct!
Exercise:Fill in the missing parts to execute some code, after the exception statements, regardless of the result.
try
{
int[] myNumbers = {1, 2, 3};
Console.WriteLine(myNumbers[10]);
}
catch (Exception e)
{
Console.WriteLine("Something went wrong.");
}
finally
{
Console.WriteLine("The 'try catch' is finished.");
}
Not CorrectClick here to try again. Correct!Next ❯{ int[] myNumbers = {1, 2, 3}; Console.WriteLine(myNumbers[10]); } (Exception e) { Console.WriteLine("Something went wrong."); } { Console.WriteLine("The 'try catch' is finished."); } |