Question: what are the sets in java?
Answer: The Set Interface. A Set is a Collection that cannot contain duplicate elements. It models the mathematical set abstraction. ... Two Set instances are equal if they contain the same elements. The Java platform contains three general-purpose Set implementations: HashSet , TreeSet , and LinkedHashSet .