Activity Forums Salesforce® Discussions What are the different data types in Apex in salesforce?

  • Somendra

    Member
    August 12, 2019 at 4:59 am

    Hi Piyush,

    Different data types available in Apex are,

    1.Basic data type (Integer/Boolean/String)
    2.Boolean
    3.Date/Datetime/Time
    4.ID (18 bits and 15 bits, can be converted to and from String)
    5.Integer/Long/Double/Decimal
    6.String
    7.Blob
    8.Object
    9.Enum (enumeration type)
    10.sObjects ( sObjects/Account/Position_c, etc. )
    11.Collection (list, set, map, etc.)
    12.User-defined and system custom objects
    13.Null

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos