Apex is a proprietary programming language provided by Salesforce.com. It is used to develop custom applications on the Force.com platform. Apex is similar to Java in syntax and can be executed in both the synchronous and asynchronous mode.
Salesforce Apex is a proprietary programming language provided by Salesforce.com. It is a strongly typed, object-oriented, case-insensitive programming language. Apex enables developers to add business logic to applications hosted on the Salesforce.com platform.
Apex is executed in a multitenant environment, meaning that code executed in one Salesforce instance can affect other Salesforce instances. As a result, great care must be taken when writing Apex code to ensure that code is safe and does not inadvertently impact other Salesforce customers.
Apex code can be invoked from triggers, Visualforce pages, and Lightning components. Apex code can also be executed as part of a workflow rule, Process Builder flow, or via the Salesforce REST API.
2- if statements