使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
String stuName=new String("张三");
stuName.concat("李四");
String str1="abc";
String str2="abc";
System.out.println(str1==str2);
System.out.println(str1.equals(str2));
System.out.println(str1==new String(str2));
System.out.println(str1.equals(new String(str2)));
String str2 =new String("abc");
System.out.println(str1==new StringBuffer(str1));
System.out.println(str1.equals((new StringBuffer(str1))));
String results[]=input.split(":|,");
System.out.print(results[1]);
public static void main(String[] args) {
StringBuffer sb=new StringBuffer();
sb.append("abc").append("def");
showInfo(sb,"123");
System.out.print(sb.length());
}
static void showInfo(StringBuffer sb,String str){
sb.append(str);
sb.insert(5,"," );
System.out.print(sb.toString());
System.out.print("ABCD".concat("E").replace("C", "F"));
System.out.println("123lanqiao456".startsWith("a"));
程序运行后的输出结果是
int a1 = 2020;
int a2 = 2020;
String s3 = "lanqiao";
String s4 = new String("lanqiao");
System.out.print(a1==a2);
System.out.print(s3==s4);
}程序运行后的输出结果是( )