List Array Notation in Apex | Salesforce Development Course

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 7

  • @SathishSfdc-oz5xs
    @SathishSfdc-oz5xs 7 месяцев назад

    I noticed few things:
    1. by default all the array notations for list are null and when you have list of size 4 which is Index {0,1,2,3) - value {null,null,null,null} and if you add the value for ex. L4[3] = 8; then it becomes {null,null,8,null}.
    2. Now if i have this list {null, 3 , 8, null} , then i remove L4.remove(3); then it becomes {null,3,null} , which means the position itself gets removed and replaced by next value.
    3. after performing L4.clear(); I was not able to add any value to this List, is there any way to over ride that?

    • @SalesforceHulk
      @SalesforceHulk  6 месяцев назад +1

      L4[0] = 1; syntax to replace a value at 0th index.
      Or, also, you check the list methods in documentations.

  • @SunilBarara
    @SunilBarara Год назад

    Amazing

  • @MDASIF-wo7ck
    @MDASIF-wo7ck 3 года назад

    In Array notation list what will the
    Default values of list without adding values ???

    • @LalchandRawatVlogs1
      @LalchandRawatVlogs1 3 года назад

      The default values of the Array notation list will be null.

    • @unboxingcheck
      @unboxingcheck 3 года назад

      Default values for list will be Null