• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Core Java

 
vijay bomma
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is hascCode() ?

how it is used in real-time scenario ?


--- vijay
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you mean HashCode

HashCodes are usually used to increase the performance of large collections of data. The Hashcode is used for searching into the right subset of the data.

HashCode is used by the following collections, HashSet, HashMap.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vijay bomma, please take the time to choose an appropriate forum for your posts. This forum is for questions on HTML and Javascript. This post has been mvoed to a more approriate forum.
 
Mark Vedder
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the JavaDoc for Object.hashCode(). It explains, beyond the nice summary that Wilhelm provided, details about the hashCOde() method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic