jQuery in Action, 2nd edition*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 37953
    
  22
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()
 
Similar Threads
toString()
why new date() prints date ?????
How to get body-content value in my custom tag?
finding the servlet's base host
Printing object location Not contents