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.");
} finally {
System.out.println("The 'try catch' is finished.");
}
Not CorrectClick here to try again. Correct!Next ❯try { int[] myNumbers = {1, 2, 3}; System.out.println(myNumbers[10]); } catch (Exception e) { System.out.println("Something went wrong."); }{ System.out.println("The 'try catch' is finished."); } |