There is one more collection, called HashTable, but it lies along the same lines as HashMap. You just need to change HashMap to HashTable—that's it. There's a slight difference between HashMap and HashTable though.
The differences between HashMap and HashTable are as follows:
- Synchronized or thread-safe
- Null keys and null values
- Iterating values