Title: Set Interface
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: (OLDstyle) Learning Modules

Set Interface

A set is a collection without duplicate elements.

- Two sets are equal if they contain the same elements.
- The Set interface inherits methods from the Collection interface.
- HashSet, TreeSet, and LinkedHashSet are implementations of the Set interface.

For more information, see:

- The List Interface
- Level 1 Study Materials: Unit 2
- Level 1 Study Materials: Unit 10