Development questions

What happens if you try to modify Trigger.old in any trigger event?

DevelopmentEasyTCSHCLHexaware

Trigger.old and Trigger.oldMap are always read-only. Attempting to change a field on them throws a runtime error: Record is read-only. Use them only for comparison with the new values, or to know what is being deleted.

apex-triggertriggercontext-variables