以下代码段执行后的输出结果为
发布于 2022-03-03 14:04:35
以下代码段执行后的输出结果为
public class Test { public static void main(String[] args) { System.out.println(test()) } private static int test() { int temp = 1 try { System.out.println(temp) return ++temp } catch (Exception e) { System.out.println(temp) return ++temp } finally { ++temp System.out.println(temp) } } }
登录后免费查看答案
关注者
0
被浏览
38
1 个回答