A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
From sun java class documents
Joined: Nov 04, 2002
Dec 21, 2002 02:35:00
The tostring method for class Object returns a
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.
Joined: May 10, 2001
Dec 21, 2002 07:05:00
Right, and you can override toString() in your own classes to return something meaningful.
I agree. Here's the link:
subject: From sun java class documents
object and instance
Anonymous Classes : Significance
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015