What happens when we add duplicate elements in LinkedHashSet?
Correct answer
Only first occurrence is stored
Explanation
LinkedHashSet ignores duplicates and keeps only the first occurrence.
Update: Admin added a tag on this question
Topics
By Admin · · 24 views