Activity Forums Salesforce® Discussions What is the difference between primitive type and wrapper class in Salesforce?

  • Anurag

    Member
    August 8, 2018 at 12:31 pm

    Hi Chanchal,

    Primitive data types are what the Salesforce provides to us by default.Some of the primitive data types are Integer,Float,Boolean etc.

    Wrapper Class  is a class which wraps several primitive data types to form a single class which we use to perform certain tasks.

  • shariq

    Member
    September 5, 2018 at 8:08 pm

    Hi Chanchal,

    Primitive data types - Primitive types are the most basic data types available within the salesforce. For example - Integer,Boolean etc.

    Wrapper Class -  A wrapper or container class is a class, a data structure, or an abstract data type which contains different objects or collection of objects as its members. A wrapper class is a custom object defined by programmer wherein he defines the wrapper class properties.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos