• Post Reply Bookmark Topic Watch Topic
  • New Topic

equals(),hashCode(),compareTo()  RSS feed

 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Thanks a lot in advance.

I am pretty much aware about equals(),hashCode(),compareTo() methods. But still I need to read and understand the usage and importance of these methods. Could any one give some explanation about these with examples.

Regards,
Sree
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The full contract with usage hints can be found in the JavaDocs: java.lang.Object, java.lang.Comparable.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please SearchFirst. A similar question was asked just one or two weeks ago.
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is so many questions,asked about these topic in this forum,Please search earlier posts.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!