public class Main {&nb...
发布于 2022-03-03 11:40:05
public class Main {
public static void main(String[] args) {
System.out.print(fun1())
}
public static String fun1() {
try {
System.out.print("A")
return fun2()
} finally {
System.out.print("B")
}
}
public static String fun2() {
System.out.print("C")
return "D"
}
}
执行以上程序后,输出结果正确的是?
public static void main(String[] args) {
System.out.print(fun1())
}
public static String fun1() {
try {
System.out.print("A")
return fun2()
} finally {
System.out.print("B")
}
}
public static String fun2() {
System.out.print("C")
return "D"
}
}
执行以上程序后,输出结果正确的是?
登录后免费查看答案
关注者
0
被浏览
10