What is Apex?
Apex is a strongly typed object-oriented programming language that allows running code on salesforce servers. Apex syntax is similar to Java and acts like a database-stored procedure.
In Salesforce apex is used to add a complex business to the system and can handle most system events like button clicks, record updates/creation, and web service calls. External systems can invoke Apex code, i.e. web service requests and triggers.
Apex is,
1. Integrated :
As Apex is tightly integrated with Salesforce hence it provides built support to the lightning platform.
- No need to establish an explicit connection with the database to perform data manipulation calls (INSERT, DELETE, UPDATE, MERGE).
- Inbuilt query languages SOQL(Salesforce Object Query Language) and SOSL(Salesforce Object Search Language)
2. Easy to use:
Apex syntax is similar to Java syntax such as variable, loop statements, conditional statements, object, and array notation.
3. Data-focused:
Apex handles multiple queries or DML as a single unit of work on salesforce servers. Apex doesn't support rendering of element on user interface.
4. Hosted:
No need to install any software on the local machine to work with Apex. The entire Apex code is interpreted, and executed on the lightning platform.
5. Multitenant Aware:
Like the lightning platform, apex also runs on a multitenant environment hence it prevents resource monopolizing. If any piece of code violates the governor's limits proper error message will be thrown.
Comments
Post a Comment