General Purpose Sets Three framework classes implement the Set interface: –HashSet –TreeSet –LinkedHashSet Note that it is possible to add elements of different classes to the same set as the following example illustrates.