下面程序结果为:( )
class Passer {
static final int x = 5;
public static void main(String[] args) {
new Passer().go(x);
System.out.print(x);
}
void go(Integer x) {
System.out.print(x++);
}
}55
56
65
66
整数参数按值类型处理
下面程序结果为:( )
class Passer {
static final int x = 5;
public static void main(String[] args) {
new Passer().go(x);
System.out.print(x);
}
void go(Integer x) {
System.out.print(x++);
}
}55
56
65
66