Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

From sun java class documents

 
qin da
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The tostring method for class Object returns a string consisting of the name of the class of which the Object is an instance, the at-sign character '@', an the unsigned hexadecimal representation of the hash code of the Object.
 
Chad McGowan
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right, and you can override toString() in your own classes to return something meaningful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic