Salesforce : Annotations


An Apex annotation modifies the way that a method or class is used, similar to annotations in Java.

Annotations are defined with an initial @ symbol, followed by the appropriate keyword. To add an annotation to a method, specify it immediately before the method or class definition. For example:

global class MyClass {
Public static void myMethod(String a){
//long-running Apex code

Happy Sharing...


Popular posts from this blog

Developing Chrome Extensions for Salesforce

Update Apex Page via Tooling API in Salesforce

Creating and Configure Remote Site Settings via the Tooling API