HashMap | Hashtable |
|---|---|
|
|
Allows one | Does not allows |
Not synchronized | Synchronized (thread-safe; locks the entire map on every method call). |
Generally faster | Generally slower |
Loading…
HashMap | Hashtable |
|---|---|
|
|
Allows one | Does not allows |
Not synchronized | Synchronized (thread-safe; locks the entire map on every method call). |
Generally faster | Generally slower |