This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes From sun java class documents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "From sun java class documents" Watch "From sun java class documents" New topic

From sun java class documents

qin da

Joined: Nov 04, 2002
Posts: 4
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

Joined: May 10, 2001
Posts: 265
Right, and you can override toString() in your own classes to return something meaningful.
It is sorta covered in the JavaRanch Style Guide.
subject: From sun java class documents
Similar Threads
object and instance
Anonymous Classes : Significance
Practice Question
What does this JavaScript syntax mean?