Activity Forums Salesforce® Discussions What is a Data Type and What are the different Data Types are available in Salesforce Apex?

  • Ayush

    Member
    January 28, 2020 at 1:28 pm

    Following types of data types are used in Salesforce.

    ID
    String
    Boolean
    Double
    Varies by type

  • Kirandeep

    Member
    January 28, 2020 at 1:55 pm

    Hi Marziya,

    Data type specifies that which type of value a variable has.

    Data Types available in Apex  :-

    • Primitive (Integer, Double, Long, Date, Datetime, String, ID, or Boolean);
    • Collections (Lists, Sets and Maps).
    • sObject.
    • Enums.
  • Pooja

    Member
    January 28, 2020 at 2:27 pm

    Data types can be defined as which describe us the type of data.

    The different data types which are available in Salesforce are-

    1)Primitive Types

    2)sObject Types

    3)Collections

    4)Enums

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos