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

  • Anurag algoworks

    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

A Complete Guide to the Salesforce Administrator Certification Course: What to Expect and How to Succeed

Blog in

In today’s digital era, Salesforce has become the go-to customer relationship management (CRM) platform for businesses worldwide. Whether you're managing customer data, automating workflows, or…

Popular Salesforce Videos