Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 [Re:topirol]
kjjx





发贴: 62
积分: 0
于 2004-05-20 10:40 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
== 比较的是reference
equals 比较的是对象的内容.
String a = new String("sss");
String b = new String("sss");
System.out.println(a==b); // output : false;
System.out.println(a.equalsBeer);//output :true;




话题树型展开
人气 标题 作者 字数 发贴时间
17495 [精华] String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 topirol 56 2004-02-23 13:31
15869 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 iamyourbrother 3 2004-04-30 10:43
16362 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 nowplay 337 2004-02-26 11:26
15750 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 lobster 568 2004-05-18 13:34
16139 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 topirol 17 2004-02-26 11:54
16134 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 maogua 16 2004-02-26 20:24
16432 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 daminggege 50 2004-02-26 22:23
16885 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 dingligang 313 2004-02-27 14:13
16641 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 dearmeiw 13 2004-02-28 00:53
15977 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 anders02 55 2004-03-01 20:24
15928 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 adrop 58 2004-03-13 19:28
16155 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 dingjunming 20 2004-04-30 18:53
15965 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 whirl79 72 2004-05-19 22:45
16415 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 ringayumi 95 2004-02-23 14:04
16338 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 hahaha 21 2004-02-23 16:17
16084 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 kjjx 194 2004-05-20 10:40
15633 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 michaelbeyond 197 2004-05-21 11:51
15519 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 j2ee_ejb 49 2004-05-24 14:32
15708 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 scottding 43 2004-05-25 13:07
15654 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 LH258 393 2004-05-30 02:25
15709 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 风暴冲浪 187 2004-05-30 14:16
16538 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 newnewworm 92 2004-02-23 18:05
16307 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 chenxihua 1082 2004-02-24 22:25
16189 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 topirol 116 2004-02-23 19:07
16429 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 Starcraft 15 2004-02-23 21:47
16179 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 topirol 69 2004-02-24 08:48
16610 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 JavaCodinger 4 2004-02-24 13:28
16318 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 zgd 23 2004-02-25 02:42
16657 Re:String a = "sss";和String a = new String("sss");有什么区别吗?谢谢 nowplay 178 2004-02-26 11:10

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923