public static void main (String [] args) {
final int x=5;
new Sushu().go (x);
System.out.print (x);
}
void go (int x) {
System. out .print(++x);
}
不是说final修饰的变量是常量吗,为什么输出是65??
final int x=5;
new Sushu().go (x);
System.out.print (x);
}
void go (int x) {
System. out .print(++x);
}
不是说final修饰的变量是常量吗,为什么输出是65??