This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
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.
posted 13 years ago
Right, and you can override toString() in your own classes to return something meaningful.