Science, asked by Tamannadagar976, 1 year ago

Difference between hashset and linkedhashset

Answers

Answered by řåhûł
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!
Answered by saswatidas23
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