Understanding Data Types in Apex

Most programming languages support common data types of real, integer and boolean.
In the Apex programming language for Salesforce this remains true.

Before programming on the salesforce platform you should get familiar with the different data types that are available to you.

Primitive: Integer, Double, Long, Date, Datetime, String, ID, or Boolean

sObject: The entire entity of the object like Account, Contact, or MyCustomObject__c (Standard and Custom objects)

A list (equivalent to an array) of primitives, sObjects, custom objects, objects created from Apex classes, or collections.

A set of primitives.

A map from a primitive to a primitive, sObject, or collection 

Enum: A typed list of values


Add Comment