Friday, May 30, 2008

Know about Hashing

Everyone might have used HashMap and HashTable.....have you ever thought howz it handling the keys and values inside...? Even i havnt thought about it....:)

HashTable hashTable_Emp = new HashTable();

It transforms your key to a index value using hash function which enables it for a faster searching mechanism...
To know about hash function---->
And don forget to hav a look over the hashCode() method under Object class...

No comments: