This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes basic thing about toString,equal(),hashCode() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "basic thing about toString,equal(),hashCode()" Watch "basic thing about toString,equal(),hashCode()" New topic

basic thing about toString,equal(),hashCode()

Rakesh Bagaria

Joined: Sep 06, 2009
Posts: 14
hello everyone
i am little confuse about toString(), equal(), hashCode(). please explain properly that when object class function get called when abstract collection class called and so on.
Please Explain with proper diagram and when toString() is used and when valueOf() used in string conversion please Explain . thanks
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

please "GOOGLE" . it would be better
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

Have you seen the Javadocs for these methods.
Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 466

Hi Rakesh,

Please read this , these are methods of object class. If its still unclear then post again in this link. We'll help.


Vinod Tiwari | Twitter | Shikshanirman | Guftgu
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 43394
Google for Angelika Langer Java equals which has lots of useful information in.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: basic thing about toString,equal(),hashCode()
It's not a secret anymore!