Re: How to use synchronizedMap for HashMap
Posted By:
Shawn_Alexander
Posted On:
Monday, July 15, 2002 07:36 AM
Kraja,
Why not use a Hashtable? The synchronization is already provided for you and as of the JDK 1.2, Hashtables implement the Map interface so you can return it as a Map. So, if you want to synchronize all access to the Map, use Hashtable.
Shawn