Tag Archives: LinkedHashSet
HashSet and LinkedHashSet
HashSet (Since Java 1.2): HashSet is achild interface of Set. Underlying data structure is HashTable.(Internally it’s a HashMap. See HashTable code) Insertion order is not preserved. Duplicates are not allowed. Allows null element ( only one 🙂 since set will not allow duplicates). Default initial capacity is 16. Default load factor is 0.75f. Threshold = […]