Salesforce Fact #121 | Switch case apex
When clause in switch statement considers only literal value. It does not accept variable or final value.
Attached is the screenshot.
For more details check: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_switch.htm
Comments
Post a Comment