• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rakesh Bagaria
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please "GOOGLE" . it would be better
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you seen the Javadocs for these methods.
 
Vinod Tiwari
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google for Angelika Langer Java equals which has lots of useful information in.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic