karthick chinnathambi wrote:in hash map if an object is put into a particular bucket based on a key and if the key is lost, will the value gets lost?
is the bucket for a value decided only based on the key??
Yes, the bucket value is decided on the key. There is only a bucked if there is a key in it. So if there is a key in a bucket, it can't be lost...