Salesforce Fact #111 | Single line multi var assignment

Apex also supports multi variable assignment with the same value in a single statement. I am not sure if it is a best practice, but this is super cool. :)

Attached is the screenshot.

For more details, please check: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_variables.htm



Comments