Blogger

Delete comment from: Javarevisited

Anonymous said...

Diff between HashMap & Hashtable interms of algo for the key index will be

HashMap
Index = hashcode & (bucketsize) // bitwise

Hashtable

Index = (hashcode & 0x7FFFFFFF) % bucketsize // MOD op e.g 100(hashcode) % 10 (bucket size) = 0
Index = 0

Aug 21, 2012, 11:03:32 AM


Posted to How HashMap works in Java?

Google apps
Main menu