HashSet uses a HashMap internally to ensure no duplicates are stored.
← Core Java theorytheory 0/50 · 0%
Collections · medium
25. HashSet
Collection of unique elements.
Check your understanding
1. Allows duplicates?
2. Guarantees order?
Collection of unique elements.
HashSet uses a HashMap internally to ensure no duplicates are stored.
1. Allows duplicates?
2. Guarantees order?