Home » JAVA Programming » Data Structures » Question
  1. What is the unique feature of LinkedHashSet?
    1. The elements in the collection are linked to each other
    2. It provides a way to store key values with uniqueness
    3. It maintains the insertion order and guarantees uniqueness
    4. It is not a valid class
    5. None of these
Correct Option: C

Set is a collection of unique elements.HashSet has the behavior of Set and stores key value pairs. The LinkedHashSet stores the key value pairs in the order of insertion.



Your comments will be displayed only after manual approval.