function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC_DevloperSFDC_Devloper 

Why we are using @ Symbol before writing Annotations?

Hi All,

Why @ Symbol before Annotations?(Annotations are defined with an initial @ symbol, followed by the appropriate keyword)

Thanks,
Allways Cool
Adnubis LLCAdnubis LLC
I am not sure how deep of an answer you are looking for but the more basic answer is that it is used the same way Java does. The @ symbol simply lets the processor know that it isn't just another method and needs to be treated accordingly. You would most likely be able to find more information about why the @ symbol is used by looking on a JAVA forum.