【单选题】
下面程序执行后,屏幕上显示的应是______。 public class Testl0 { public static void main(String[] args) { char char1[] = {’t’, ’e’, ’s’, ’t’}; char char2[] = (’t’, ’e’, ’s’, ’t’, ’1 }; String s1 = new String(char1); String s2 = new String(char2, 0, 4); System. out.println (si.equal (s2)); } }
A、true
B.false
C.test
D.编译错误
查看答案解析
参考答案:
正在加载...
答案解析
正在加载...
根据网考网移动考试中心的统计,该试题:
62%的考友选择了A选项
30%的考友选择了B选项
7%的考友选择了C选项
1%的考友选择了D选项