+1 vote
in Salesforce by (13.0k points)
How Does Apex Work?

1 Answer

0 votes
by (13.1k points)

All Apex programs runs entirely On-Demand on Force.com Platform.

First the platform application server compiles the code into abstract set of instructions that can be understood by Apex runtime interpreter.

The compiled code is stored to metadata.

When the end users triggers the execution of Apex by clicking button or VisualForce page the application servers retrieves the compiled instructions from the metadata and send them to runtime interpreter before returning the result.

Related questions

0 votes