Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Core Java  RSS feed

 
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
Posts: 66141
141
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!