考考你(28)
Given this code snippet:
try {
tryThis();
return;
} catch(IOException x1) {
System.out.println("exception 1");
return;
} catch(Exception x2) {
System.out.println("exception 2");
return;
} finally {
System.out.println("finally");
}
what will appear in the standard output if tryThis() throws a IOException?
a. "exception 1" followed by "finally"
b. "exception 2" followed by "finally"
c. "exception 1"
d. "exception 2"
点击查看答案