Newer Version Available

This content describes an older version of this product. View Latest

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: