2012JAVA常见试题及答案汇总(10)
对于以下程序,运行“java Mystery Mighty Mouse”,得到的结果:MouseMightypublic class Mystery {
public static void main(String[] args) {
Changer c = new Changer();
c.method(args);
System.out.println(args + ” ” + args);
}
static class Changer {
void method(String[] s) {
String temp = s;
s = s;
s = temp;
}
}
}
页:
[1]