Dayrvia
Jv

Java · Exception handling · Practice questions

Try 1 question on Java · Exception handling, then read the explanations and review the related concepts.

Practice questions

Choose an answer and move to the next question. Grade the last one to see explanations and review links.

1 question
Q1 What is s after the blocks finish?
String s = "";
try {
    s += "1";
    Integer.parseInt("no");
    s += "2";
} catch (NumberFormatException e) {
    s += "3";
} finally {
    s += "4";
}
Original practice questions written for Dayrvia.