Q6. What is the difference between a trigger and a workflow rule in Salesforce?
a) A trigger is used to perform server-side logic, while a workflow rule is used to perform client-side logic.
b) A trigger is used to perform client-side logic, while a workflow rule is used to perform server-side logic.
c) A trigger is executed before a record is saved, while a workflow rule is executed after a record is saved.
d) A trigger is executed after a record is saved, while a workflow rule is executed before a record is saved.