What are the different Collections in APEX?

Category: QuestionsWhat are the different Collections in APEX?
1 Answers
Editor">Editor Staff answered 2 years ago

The different collection data structures in the APEX are Lists, Maps, and Sets. A List will be having any type of data stored in it such as primitives, collections, different types of complex objects or schema objects. There will also be different types of methods available in the lists for performing different operations such as to retrieve the size of the list, to clear the contents, to get the details of the list and to update, delete and add the records or values into it. The same functionalities also exist for Set and Maps but with different functionalities.