黑马程序员技术交流社区
标题:
下列程序的运行结果是:()
[打印本页]
作者:
jeska
时间:
2015-9-3 17:04
标题:
下列程序的运行结果是:()
class Test
{
private static int x = 10;
public void show(int x)
{
x++;
System.out.println(x);
}
public static void main(String[] args)
{
int x = 20;
Test t = new Test();
t.show(x);
}
}
A:10
B:21
C:11
D:20
作者:
洋葱头头
时间:
2015-9-3 18:02
21把 不知道.
作者:
mah707
时间:
2015-9-3 18:05
结果应该是21
作者:
wangzhuo
时间:
2015-9-3 18:07
应该是21
作者:
流觞曲水
时间:
2015-9-3 19:56
21,不解释
作者:
季995
时间:
2015-9-3 20:25
21,非常确定
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2