Which statement is true for the Class java.util.HashSet?

Options
- The collection is guaranteed to be immutable.
- The elements in the collection are unique.
- The elements in the collection are ordered.
- The elements in the collection are synchronized.


CORRECT ANSWER : The elements in the collection are unique.

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement