aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "toString()" Watch "toString()" New topic
Author

toString()

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
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
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.
 
 
subject: toString()