62,614
社区成员
发帖
与我相关
我的任务
分享
public class Test22 {
public static void main(String[] args) {
System.out.println(tt());
}
public static int tt() {
int b = 23;
try {
System.out.println("yes");
return b = 88;
} catch (Exception e) {
System.out.println("catch");
} finally {
b = 90;
if (b > 25) {
System.out.println("b>25:" + b);
}
b = 10;
System.out.println("finally");
}
b = 100;
return b;
}
}
int temp ret = (b = 88);
// b变成了88
finally {
...
}
return temp;