Prev Next

Java / Set and its implementations

How does LinkedHashSet maintain unique Elements in Java?

LinkedHashSet inherits the uniqueness property from LinkedHashMap as internally LinkedHashMap gets created indirectly when LinkedHashSet is created.

More Related questions...

Show more question and Answers...


Comments & Discussions