Course Content
Salesforce Development – Apex
About Lesson

This class covers the below topics

  1. Introduction to Programming
  2. Variables in Apex
  3. Data Types in Apex

Hands-on Exercise: 

  1. Declare an Integer variable named age with a value of 25 and output it to the debug log.
  2. Declare an Integer variable named age with a value of 25 and update the same age variable to 60 in the next line and display it via debug log.
  3. Capture two ages age1, age2 in two different Integer variables with values 30, 25 and calculate the age difference between them, and store the difference in a third Integer variable agedifference and output the difference to the debug log.
  4. Declare 2 integers a and b with two values 35, 26 and Swap these numbers that are stored in a,b.
  5. Declare 2 integer variables a, b with values 70, 50 and store their sum in another variable named agesum.

 

0% Complete