There are many classes that implement the Set interface for various purposes:
- We have discussed the HashMap class in this section; it is by far the most popular Set implementation
- The LinkedHashSet class stores unique elements in order
- The TreeSet class orders its elements based on their values natural order or using the Comparator provided at creation time
- Many other classes referred in the online documentation of the Set interface