HashMap vs HashTable

HashMap vs HashTable


HashMap vs HashTable 

HashMap
HashTable
Not synchronizedSynchronized
Allows one null key and many null valuesDoesn't allow null values
No order
  • LinkedHashMap - Insertion order
  • TreeMap - order by keys
No order
No duplicatesNo duplicates

0 comments :

Post a Comment