Salesforce Collections: List, Set, Map Collections are the group of similar types. There is no limit on the number of items a collection can hold. However, there is a general limit on heap size. There are three types of Salesforce collections. List Set Map 1. List: List is an ordered collection of elements which will allow duplicates. A list is an ordered collection of typed primitives SObjects, user-defined objects, Apex objects or collections that are distinguished by their includes. The index position of the first element in a list is always '0' List elements can be of any data type: primitive types, collections, sObjects, user-defined types, and built-in Apex types. A list is an ordered collection of elements that are distinguished by their indices. To declare a list, use the list. keyword followed by the primitive data, SObject, nested list, map, or set type within < >characters. List Syntax: List<datatype> listName = new List<datatype>(); Note:- Simil...