Menu
×
×
正确
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.");
}
不正确
点击 此处 重试 正确
下一题 ❯try { int[] myNumbers = {1, 2, 3}; System.out.println(myNumbers[10]); } catch (Exception e) { System.out.println("Something went wrong."); }w3exercise_input_no_0{ System.out.println("The 'try catch' is finished."); } |