+ 1
What is the difference between Java's HashSet and LinkedHashSet?
4 Respuestas
+ 1
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
+ 1
thanks for delivering the concept
0
So the order of insertion isn't maintained in HashSet unlike LinkedHashSet. Correct?
0
ya