File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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.
subject: From sun java class documents
It's not a secret anymore!