what is the difference between list and map in salesforce?
Hi Vikas, A list is an ordered collection of elements that are distinguished by their indices. ... 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.