How LinkedHashSet is different from HashSet?

LinkedHashSet maintains a linkedlist of entries in the set.It guarantee the insertion order of elements. But HashSet does not guarantee the insertion order of elements.

No comments:

Post a Comment