Apex fundamentals

Data type :

Data type in the Apex tells about what type of data can be stored .
What is the range of the of the that can be stored.

Primitive data types 
Collections
Enums

Primitive data type:

These are the datatypes which are predefined by the Apex.
A premetive data type such as an Integer, Double,Long,Date, Data Time, String , Id and Boolean.
All primitive data types are passed by value , not by refrence.
All Apex variables ,whether they are class member variables  are initilized to null .Make sure that we initilize variables to appropriate values before using them.



No comments:

Post a Comment