| September 09, 2009 15:55:44 |
#2 |
| kumpsath |
Member Since: September 2009 Total Comments: 3 |
RE: What is the difference between HashTable and HashMap? |
| Hashtable is synchronized means it's therad safe where as hashmap is not and hash table can't store null value hashmap can store null values. HashTable is thread safe is because, it makes lock in it when it executes get() or put() methods. It is good one when you use the data in an multi-threading application. You may try use hashmap inside synchronized block. |
| |