More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
- Interview Questions and Answers for 'Deprecated annotation' - 3 question(s) found - Order By Newest
Q1. What is the use of Deprecated annotation ?
Ans. Deprecated annotation is for documentation purpose only. It doesn't enforce anything but would mark the method name as crossed to signify that the client should refrain from using it.
Help us improve. Please let us know the company, where you were asked this question :
Q3. If you are supposed to deprecate the method , Will you deprecate the method in the implementation class or will you deprecate the abstract declaration within interface or abstract class ?
Ans. Deprecating the interface / or declaration doesn't make much sense as the implementation is deprecated and not the interface.
Help us improve. Please let us know the company, where you were asked this question :