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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 36478
    
  16
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
finding the servlet's base host
How to get body-content value in my custom tag?
Printing object location Not contents
toString()
why new date() prints date ?????