Skip to main content
added 9 characters in body
Source Link
Koray Tugay
  • 24k
  • 49
  • 205
  • 335

Hashtable is synchronized, whereas HashMap isn't. That makes Hashtable slower than Hashmap.

For non-threaded appssingle thread applications, use HashMap since they are otherwise the same in terms of functionality.

Hashtable is synchronized, whereas HashMap isn't. That makes Hashtable slower than Hashmap.

For non-threaded apps, use HashMap since they are otherwise the same in terms of functionality.

Hashtable is synchronized, whereas HashMap isn't. That makes Hashtable slower than Hashmap.

For single thread applications, use HashMap since they are otherwise the same in terms of functionality.

added 10 characters in body
Source Link
Yousha Aleayoub
  • 5.9k
  • 4
  • 61
  • 72

HashtableHashtable is synchronized, whereas HashMapHashMap isn't. That makes HashtableHashtable slower than HashmapHashmap.

For non-threaded apps, use HashMapHashMap since they are otherwise the same in terms of functionality.

Hashtable is synchronized, whereas HashMap isn't. That makes Hashtable slower than Hashmap.

For non-threaded apps, use HashMap since they are otherwise the same in terms of functionality.

Hashtable is synchronized, whereas HashMap isn't. That makes Hashtable slower than Hashmap.

For non-threaded apps, use HashMap since they are otherwise the same in terms of functionality.

Source Link
izb
  • 52.2k
  • 40
  • 120
  • 173

Hashtable is synchronized, whereas HashMap isn't. That makes Hashtable slower than Hashmap.

For non-threaded apps, use HashMap since they are otherwise the same in terms of functionality.