Java Collection Framework : Help to choose collection implementation

Shambhu Mehta
1 min readNov 19, 2018

--

Choosing right collection we should have the answer of following question

  1. Do I need the ordering to remain?
  2. Will I have null key/values? Dups?
  3. Will it be accessed by multiple threads
  4. Do I need a key/value pair
  5. Will I need random access?
  6. Does it allow accessing elements by index?
  7. Does it offer fast adding and fast removing elements?

Graphical representation always help us to understand better .

Collection sheet for developer

I like to hear your feedback and comments ….

--

--

Responses (1)