firstSet.union(secondSet) // Union of two sets firstSet.intersection(secondSet) // Intersection of two sets firstSet.symmetricDifference(secondSet) // exclusiveOr