What Is Collections In Apex?
Apex language provides developers with three classes (Set, List, Map) that make it easier to handle the collection of objects. In a sense, these collections work somewhat like arrays except their size can change dynamically and they have more advanced behaviors and easier access methods than arrays.
