Java Collection Framework : Help to choose collection implementation
1 min readNov 19, 2018
Choosing right collection we should have the answer of following question
- Do I need the ordering to remain?
- Will I have null key/values? Dups?
- Will it be accessed by multiple threads
- Do I need a key/value pair
- Will I need random access?
- Does it allow accessing elements by index?
- Does it offer fast adding and fast removing elements?
Graphical representation always help us to understand better .
I like to hear your feedback and comments ….