Menu
×
×
Correct!
Exercise:Insert the missing keyword to execute code, after
try {
int[] myNumbers = {1, 2, 3};
System.out.println(myNumbers[10]);
} catch (Exception e) {
System.out.println("Something went wrong.");
} @(7) {
System.out.println("The 'try catch' is finished.");
}
try {
int[] myNumbers = {1, 2, 3};
System.out.println(myNumbers[10]);
} catch (Exception e) {
System.out.println("Something went wrong.");
} finally {
System.out.println("The 'try catch' is finished.");
}
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 59 exercises.
Are you sure you want to continue?