What is key in map Salesforce?

A map is a collection of key-value pairs where each unique key maps to a single value . Keys and values can be any data type—primitive types, collections, sObjects, user-defined types, and built-in Apex types. Map keys and values can contain any collection, and can contain nested collections.

Read more