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

您没有登录

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

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:求教 (System.out.println(this);) [Re:Butterfly8250go]
scottding

十三部落酋长

CJSDN高级会员


发贴: 1054
积分: 101
于 2004-05-25 13:06 user profilesend a private message to usersend email to scottdingsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
System.out.println(this)
真正打印的其实是this.toString()的东西。你的类是继承Object的,没有覆盖toString方法,你可以看一下JDK,返回的是这样的一个值:
getClass().getName() + '@' + Integer.toHexString(hashCode())



Blog   Home   @unumu


话题树型展开
人气 标题 作者 字数 发贴时间
5979 求教 (System.out.println(this);) Butterfly8250go 347 2004-05-25 10:57
5681 Re:求教 (System.out.println(this);) scottding 165 2004-05-25 13:06
4649 Re:求教 (System.out.println(this);) qlong_z 25 2004-06-03 09:37
4702 Re:求教 (System.out.println(this);) why 130 2004-05-25 19:43
4914 Re:求教 (System.out.println(this);) Geminist 57 2004-05-26 20:50
4628 Re:求教 (System.out.println(this);) happysilver 143 2004-05-27 23:48
4557 Re:求教 (System.out.println(this);) sevenFive 7 2004-06-03 20:48
4763 Re:求教 (System.out.println(this);) 彩云天 32 2004-06-07 10:43

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