Use Apex to add business logic and manipulate your data in Salesforce.
Learning Objectives
After completing this unit, you'll be able to:
Describe the key features of the Apex programming language.
Save an Apex class and call methods with Anonymous.Apex.
Use the Developer Console to inspect debug logs.
What is Apex?
Apex is a programming language that uses Java-like syntax and acts like database stored procedures. Apex enables developers to add business logic to system events, such as button clicks, updates of related records, and Visualforce pages.
As a language, Apex is:
Hosted—Apex is saved, compiled, and executed on the server—the Lightning Platform.
Object oriented—Apex supports classes, interfaces, and inheritance.
Strongly typed—Apex validates references to objects at compile time.
Multitenant aware—Because Apex runs in a multitenant platform, it guards closely against runaway code by enforcing limits, which prevent code from monopolizing shared resources.
Integrated with the database—It is straightforward to access and manipulate records. Apex provides direct access to records and their fields, and provides statements and query languages to manipulate those records.
Data focused—Apex provides transactional access to the database, allowing you to roll back operations.
Easy to use—Apex is based on familiar Java idioms.
Easy to test—Apex provides built-in support for unit test creation, execution, and code coverage. Salesforce ensures that all custom Apex code works as expected by executing all unit tests prior to any platform upgrades.
Versioned—Custom Apex code can be saved against different versions of the API.
Classes, interfaces, properties, and collections (including arrays).
Object and array notation.
Expressions, variables, and constants.
Conditional statements (if-then-else) and control flow statements (for loops and while loops).
Apex Collections: List
Apex Classes
Resources
Introduction to Apex Code (Recorded Webinar)
Apex Developer Guide: Introducing Apex
Trailhead: Developer Console Basics
Trailhead Link -https://trailhead.salesforce.com/cont...
Apex Basics & Database: https://trailhead.salesforce.com/cont...
Get Started with Apex: https://trailhead.salesforce.com/cont...
linkedin ID- / trailheadworld-ba2aa0250
Instagram ID- / trailheadworld
#trading #viral #trailhead #trailheadworld #trailhead_solutions #coading #developer #vlog #salesforce @trailhead @trailheadworld @salesforce @SalesforceDevs @apexhours @SalesforceAdmins