| HashTable | HashMap |
| Synchronized | Unsynchronized |
| Does not allow null keys or values | Allows one null key and any number of null values |
| Extends Dictionary | Extends AbstractMap |
| Default capacity is 11 | Default capacity is 16 |
|                      Both implement the Map interface | |
|                      Default load factor of 0.75, then they resize | |
I also read that HashMap does not guarantee the order of the map to remain constant over time.
No comments:
Post a Comment