关于返回值问题,如何返回finally中的内容?
public static int inc() {
int x;
try {
x = 1;
return x;
} catch (Exception e) {
x = 2;
return x;
} finally {
x = 3;
}
}
要解决啥问题呢???
return x,自然是返回1