In the following example, which sharing context will myMethod execute when it is invoked?
A.
Sharing rules will be enforced by the instantiating class.
B.
Sharing rules will be enforced for the running user.
C.
Sharing rules will not be enforced for the running user.
D.
Sharing rules will be inherited from the calling context.
The Answer Is:
C
This question includes an explanation.
Explanation:
In the provided code snippet, the classmyClassdoes not specify a sharing declaration (with sharingorwithout sharing). In Salesforce, when a class does not explicitly declare its sharing context, it defaults towithout sharing. This means sharing rules are not enforced.
[Reference:Apex Class Sharing Rules, , , ]
CRT-450 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"