File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes basic thing about toString,equal(),hashCode() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "basic thing about toString,equal(),hashCode()" Watch "basic thing about toString,equal(),hashCode()" New topic
Author

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

Rakesh Bagaria
Greenhorn

Joined: Sep 06, 2009
Posts: 13
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
Bartender

Joined: Jan 28, 2008
Posts: 4503

please "GOOGLE" . it would be better


Not everything that counts can be counted, and not everything that can be counted counts-Albert Einstein
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 340
Have you seen the Javadocs for these methods.


http://muhammadkhojaye.blogspot.com/
Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 356
Hi Rakesh,

Please read this http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html , these are methods of object class. If its still unclear then post again in this link. We'll help.

-Vinod


Vinod Tiwari | Facebook | LinkedIn | Twitter
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 26710
Google for Angelika Langer Java equals which has lots of useful information in.
 
 
subject: basic thing about toString,equal(),hashCode()
 
Threads others viewed
equals() method and ==
hashcode() method
Doubt in K&B SCJP 5: topic Maps
hashCode() problem
hashCode & HashMap doubts
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture