What is the difference between Java's HashSet and LinkedHashSet?
When we iterate through a HashSet, the order is unpredictable while it is predictable in case of LinkedHashSet.. because LinkedHashSet maintained the order of insertion because the underlying data structure is doubly-linked list
thanks for delivering the concept
So the order of insertion isn't maintained in HashSet unlike LinkedHashSet. Correct?