What's the difference between a HashSet and a LinkedHashSet?

1 answers

They are both Sets, but the LinkedHashSet maintains a doubly-linked list of the items, preserving the insertion order.

shilpigupta22 shilpigupta22 [Author] 8 months ago votes 0