vote
Violet Indigo Blue Green Yellow Orange Red
0 1 2 3 4 5 6

Lists are used to store data in sequence. These are the widely used collections which can store primitives, user defined objects, sObjects, Apex Objects or other collection. 

There are 2 main properties of lists: 

  1. It stores data in sequential order.
  2. The data which it stores is non-unique or can be duplicate. 

Hence use a list when the sequence of elements is important and where the uniqueness of the elements is not important.

Our Recent Blog

Share This Post
×