0

Possible Duplicate:
Are mutable hashmap keys a dangerous practice?

What happens if muttable objects in hashtable are modified without using any of the hashmap APIs

Does the object in hashmap change ? . Does it get lost since its value has changed ?

How does it exactly work ?

Thanks!

Community
  • 1
  • 1
codeObserver
  • 6,153
  • 14
  • 69
  • 115
  • 1
    Seems like this question should cover it: http://stackoverflow.com/a/7941876/364206 – Danny Thomas Jan 22 '13 at 22:44
  • 2
    Assuming you're talking about using mutable objects for the key in the map, then this duplicate question is what you're looking for. If you're talking about using them as the value, then you have nothing to worry about. – Brian Jan 22 '13 at 22:46

0 Answers0