Which one is beeter Synchronized HashMap / Hashtable ? because Hashtable is defaultly Synchronized?
posted 10 years ago
HashMap implementation is not synchronized. Hashtable is. It really depends on the situation that you've to decide which is a better choice. But, being synchronized has a little trade-off in performance.
You could instead synchronize the method or code block that accesses the HashMap object instead.