本帖最后由 heke 于 2013-10-29 21:09 编辑
public class Test5 {
public static void main(String[] args) {
int a = 3;
int b = test(a);
System.out.println(b);
}
private static int test(int a) {
int b = a;
try {
return (b = b + 3);
} catch (Exception e) {
} finally {
b = b * 4;
System.out.println("finally: " + b);
}
return b;
}
} |