I am learning heart of core java i.e. Collections. I would like to know what happens internally when we add duplicate element in HashSet, Tre
Collections
HashSet
Tre
This image may help you...
Image Source : http://javaconceptoftheday.com/hashset-vs-linkedhashset-vs-treeset-in-java/