• Data-types in Apex:

The data-types in Apex are distributed in 5 categories:-

  • ·       Premetive: 

a.     Integer

b.     Double

c.     Long

d.     Date

e.     Datetime

f.      Id

g.     Boolean

h.     Decimal

i.      String 

  • ·        Collections:

a.     List

b.     Set

c.     Map

  • ·        SObject:

a.     Salesforce Standard Objects

b.     Custom Objects

  • ·        Enum: Enum is an abstract data-type (means a data-type for objects whose behavior is defined by a set of values and a set of operations).

  • ·        Classes, Objects and Interface