Difference between hashset and linkedhashset
Answers
Answered by
2
heya!
A HashSet is unordered and unsorted Set.
LinkedHashSet is the ordered version of
HashSet.The only difference between HashSet and LinkedHashSet is that LinkedHashSet maintains the insertion order. When we iterate through a HashSet, the order is unpredictable while it is predictable in case of LinkedHashSet
if it helps uh then pls follow!
A HashSet is unordered and unsorted Set.
LinkedHashSet is the ordered version of
HashSet.The only difference between HashSet and LinkedHashSet is that LinkedHashSet maintains the insertion order. When we iterate through a HashSet, the order is unpredictable while it is predictable in case of LinkedHashSet
if it helps uh then pls follow!
Answered by
0
Answer:
HashSet is unordered and unsorted Set. LinkedHashSet is the ordered version of HashSet. The only difference between HashSet and LinkedHashSet is that: LinkedHashSet maintains the insertion order.
Explanation:
HOPE THIS ANSWER HELPS YOU, PLEASE MARK ME AS BRAINLIEST.
Similar questions
English,
8 months ago
Economy,
8 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Physics,
1 year ago