Menu
×
×
Correct!
Exercise:Fill in the missing parts to execute some code, after the exception statements, regardless of the result.
@(3)
{
int[] myNumbers = {1, 2, 3};
Console.WriteLine(myNumbers[10]);
}
@(5) (Exception e)
{
Console.WriteLine("Something went wrong.");
}
@(7)
{
Console.WriteLine("The 'try catch' is finished.");
}
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 ❯ |
This will reset the score of ALL 58 exercises.
Are you sure you want to continue?