Map

Map<Integer,String> mapCollection = new Map<Integer,String>();

mapCollection.keySet(); // gets all Keys
mapCollection.values(); // get all Values

  • Map is Collection of Key value pair
  • keys are always unique, Values can be duplicate