A. String类是final类,不可以有子类。 B. String类在java.util包中。 C. "abc"=="abc"的值是false. D. "abc".equals("abc")的值是true
A. "9dog".matches("\\ddog")的值是true。 B. "12hello567".replaceAll("[123456789]+","@")返回的字符串是@hello@。 C. newDate(1000)对象含有的时间是公元后1000小时的时间 D. "\\hello\n"是正确的字符串常量。
A. 程序编译出现错误。 B. 程序标注的【代码】的输出结果是bird。 C. 程序标注的【代码】的输出结果是fly。 D. 程序标注的【代码】的输出结果是null。
A. 程序出现编译错误。 B. 无编译错误,在命令行执行程序:“java E I love this game”,程序输出this。 C. 无编译错误,在命令行执行程序:“java E let us go”,程序无运行异常。 D. 无编译错误,在命令行执行程序:“java E 0 1 2 3 4 5 6 7 8 9”程序输出3。
A. boolean=0 B. booleana=(8>=9) C. booleana="假" D. booleana==true
A. DEF B. DEXYZ C. ABCDEF D. CDEXYZ
A. (int)Math.random()*100 B. (int)(Math.random()*10)+1 C. (int)(Math.random()*100)+1 D. (int)Math.random()*10
A. str1==str2 B. str1==str4 C. str2==str3 D. str3==str4