Link Details

Link 543761 thumbnail
User 448255 avatar

By dotCore
Published: Jan 12 2011 / 21:16

The toString() method solves so many question that we see these days in the forums, and it is crucially important to understand it. It is a method that is defined in the Object class and thus, every object has one, however, it prints out, for the most part, meaningless information.
  • 7
  • 0
  • 2051
  • 3
User 776377 avatar

lburnham123 replied ago:

0 votes Vote down Vote up Reply

Summary: override toString() to provide a string representation of an object.

User 405399 avatar

saifuddin.merchant replied ago:

0 votes Vote down Vote up Reply

I guess its more of a tip/tutorial for beginners - I would have loved to see a mention of org.apache.commons.lang.builder.ToStringBuilder - specifically the

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java