Safe Navigation Operator in Salesforce Apex

? in Salesforce Apex used for Safe Navigation Operator. The safe navigation operator (?.) can be used for checking null references. Sample Code: “Attempt to de-reference a null object” Exception will be thrown for the above code since objAcc is null. So, the safe navigation operator (?.) can be used in this case to avoid … Continue reading Safe Navigation Operator in Salesforce Apex