Primitive vs. Non-Primitive Arguments
2 examples that show variable declarations first as primitive and second as non-primitive. Example 1 Integer Count = 0; // variable has a declarative value hard coded Example 2 Account MyAccount = new Account (); // an account-based variable that references the Account sObject
Primitive data type arguments like Integers and Strings are hard-coded with value that once processed will be lost. This is the case in Example 1. However, non-primitive data type arguments, that instantiate an sObject, are processed through the method through reference. Such reference though are fixed to the specific Object that that it references and can’t be changed to another one.
















