0
点赞
收藏
分享

微信扫一扫

有关String相关的试题

玉新行者 2022-08-04 阅读 27

package

/**
* Stirng 有关的试题
*/
public class

public void
new String("abc");
"abc";
new String("abc");

//false
//false
//false

//false
//false
//true
}

public void
"hello";
"hel";
"lo";

"hel"+"lo"); //true
"hel"+lo); //false
}

public static void
new
st.strTest1();

st.strTest2();
}
}

举报

相关推荐

0 条评论