Re: How to use synchronizedMap for HashMap
Monday, July 15, 2002 07:36 AM
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.