【单选题】
指出下列程序运行的结果()public classExample{ String str=new String("good"); char[]ch={’a’,’b’,’c’}; public static void main(String args[]){Example ex=newExample(); ex.change(ex.otr,ex.ch); System.out.print(ex.str+"and"); System.out.print(ex.ch); } public void change(String str,char ch[])} str="test ok"; ch[0]≈’g’; }}
A、good and abc
B.good and gbc
C.test ok and abc
D.test ok and gbc
查看答案解析
参考答案:
正在加载...
答案解析
正在加载...
根据网考网移动考试中心的统计,该试题:
2%的考友选择了A选项
88%的考友选择了B选项
2%的考友选择了C选项
8%的考友选择了D选项