| Author |
Doubt in Hash Map and Hash Table
|
Prasad Chelur
Greenhorn
Joined: Feb 12, 2002
Posts: 10
|
|
I knew Hash table is synchronized and Hash Map is not synchronized. my question which method in Hash Table is sychronized. Is there any way that we can make Hash Map synchronized.If yes how?
|
prasadcts
|
 |
Manish Hatwalne
Ranch Hand
Joined: Sep 22, 2001
Posts: 2573
|
|
The Hashtable is thread-safe, and if you want to make HashMap threadsafe, you can use - Or you can obtain a lock on hashmap object as and when you require it for a synchronized block. HTH, - Manish
|
 |
 |
|
|
subject: Doubt in Hash Map and Hash Table
|
|
|