+ Start a Discussion
ch ranjithch ranjith 

what is @deprecated annotation in sfdc? please explain with example?

Roshni RahulRoshni Rahul
Hi ranjith,

Use the deprecated annotation to identify methods, classes, exceptions, enums, interfaces, or variables that can no longer be referenced in subsequent releases of the managed package in which they reside. This is useful when you are refactoring code in managed packages as the requirements evolve. New subscribers cannot see the deprecated elements, while the elements continue to function for existing subscribers and API integrations.
Please go through below link
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_deprecated.htm

Regards
Roshni