This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes hash collisions in java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "hash collisions in java" Watch "hash collisions in java" New topic
Author

hash collisions in java

anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
what is meant by hash collisions in java and how to avoid it in java?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

Please SearchFirst. Here is one explanation.


[My Blog]
All roads lead to JavaRanch
anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
Christophe Verré wrote:Please SearchFirst. Here is one explanation.


I had searched it but couldn't get satisfactory answers and I am not talking about general solution but how to resolve that in java coding wise I am asking..
So please help me out
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
That is handled by internally by those classes; the developer does not need to worry about it. If you're interested in the details I recommend to study the source code of the Hashtable and HashMap classes (the source is in a file called src.zip that is part of the JDK).


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: hash collisions in java
 
Similar Threads
hashCode question
hashCode for temporarly id ?
Question regarding remove method in hash table
What would be the best datastructure to hold huge data
Problem with hashcode etc