The symmetricDifference() method returns a new set containing elements which are in this set or in the argument set, but not in both: