Hi friends........
I am trying to store an object using a key in a Hashtable. And some other object already exists in that location, then what will happen? The existing object will be overwritten? Or the new object will be stored elsewhere?
Thanks..........
Loading

VulpesPosted Dec 20, 2011, 11:48 AM
So, if you try to 'put' a key/value pair to the Hashtable and the key already exists, then the existing value for that key will be overwritten with the new value.
Vikas MishraPosted Dec 20, 2011, 6:00 PM
Sam HobbsPosted Dec 20, 2011, 3:44 PM
Satyapriya NayakPosted Dec 20, 2011, 12:48 PM
Agreed with @vulpes.
The existing object will be overwritten and thus it will be lost.
Thanks