Frequently used Java class
- TreeMap
- Red-black tree based
- Ordered for key
- LinkedHashMap
- Hashtable and linked list based
- Insertion order preserved
- HashMap
- Hashtable based map
- Allow null value and null key
- Unsynchronized
- No order of key or value
- ConcurrentHashMap
- More modern than hashtable
- Use more buckets therefore less likely to be blocked
- Hashtable
- Synchronized
- Blocking queue
No comments:
Post a Comment