Apex is a Java-like programming language that is developed by Salesforce.com so that a developer can create out-of-the-box functionality by writing code in a Salesforce environment.
Apex is an Object Oriented Programming (OOPS) Language i.e. it also deals with object creation.
In Salesforce, Apex is used in several ways i.e. in Automation, Validation, and in the backend also (whenever used with framework).
It is very convenient to understand the concept of Apex as if you are familiar with Java as the structure of the code is way too similar in both languages.
Apex is a Strongly Typed language i.e. developer has to define the data type of each variable which helps the compiler to avoid ambiguity.
Things that are supported in Apex:
- Switch Statements
- while loop
- for loop
- do-while loop
- List, Set, Map Collections
- DML Statements (eg. Insert, Update etc)
- and all other features (eg. Constructors, Access Modifier, etc)

0 Comments