What does Java use to determine if a key is a duplicate in a Map?
Asked 2008-12-13T03:51:53.250
12
My first instinct is to say each key is an object, and has a hash code, which is what is used to determine if a duplicate is being inserted. However, I can't find anything to back that up for sure. Can someone provide a link that says that, or provide the real answer here? Thanks!