• A Set does not allow inserting duplicate elements, The Map does not allow using duplicate Key but it allows inserting duplicate values for unique keys,
  • A Set allows inserting a maximum of one null value, In A Map can have a single null key and multiple null values.
  • A Set does not maintain any order of elements, Some of the subclasses of a set can sort the elements in order like linked HashSet, A Map does not maintain any order of its elements m some of its subclasses like TreeMap store elements of the map in ascending order of keys.
  • In Set inserts only values, In map Inserts key-value pairs.