3、有下面程序:
public class TestString
{
public static void main(String[] args)
{
String str1 = “abcd”;
String str2 = “abcd”;
String str3 = new String(“abcd”);
String str4 = new String(“abcd”);
System.out.println(str1==str2);
System.out.println(str3==str4);
}
}
输出结果是?
A true true
B true false
C f ...
- 浏览: 16667 次
- 性别:

- 来自: 成都

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
关于struts2启动tomcat的 ...
在项目的src目录下创建struts.properties文件 再把这句话写在里 ...
-- by maoweiwer -
关于struts2启动tomcat的 ...
请问楼主,怎么创建???? 说详细些,谢谢. 初学者.
-- by tidelgl -
关于java.lang.ClassCastE ...
今天我也遇到了跟你一样的问题,找了半天,原来我在配置*.hhm.xml文件的时候 ...
-- by kylixlu -
关于java.lang.ClassCastE ...
汗,sofmit居然有这样的程序员,更没想到的是居然被我用google搜到
-- by san_yun -
关于java.lang.ClassCastE ...
大哥些 人呢 帮帮我吧 这个都捆饶我两天了 再不弄太可怜了
-- by fancool






评论排行榜