Following code will re...
发布于 2022-03-03 17:31:17
Following code will result in(单选)
public class Test {
public static void main(String[] args) {
System.out.println(getResult())
}
public static int getResult() {
try {
try {
throw new RuntimeException("exception")
} catch (RuntimeException re) {
}
return 1
} catch (Exception e) {
return 2
} finally {
return 3
}
}
}
public class Test {
public static void main(String[] args) {
System.out.println(getResult())
}
public static int getResult() {
try {
try {
throw new RuntimeException("exception")
} catch (RuntimeException re) {
}
return 1
} catch (Exception e) {
return 2
} finally {
return 3
}
}
}
登录后免费查看答案
关注者
0
被浏览
32