wood burning stoves
The moose likes Beginning Java and the fly likes toString() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "toString()" Watch "toString()" New topic


sandeep Talari
Ranch Hand

Joined: Dec 24, 2007
Posts: 63
How many purposes are there for toString().One I know is to give meaning to an object, despite getting any ununderstandable code.
Tell me other uses.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46337
Isn't that enough for it to do? I trust you have read about it in the Object class?
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
toString() has one and only intention is to give a meaning human understandable String to an Object.
I agree. Here's the link: http://aspose.com/file-tools
subject: toString()
It's not a secret anymore!