How do I mark method as deprecated?
Category: fundamental, viewed: 7492 time(s).
To mark a method as deprecated we can use the Javadoc @deprecated tag. This is what we did since the beginning of Java. But when a new metadata support introduced to the Java language we can also use annotation. The annotation for marking method as deprecated is @Depreated.
The difference between these two that the @deprecated is place in the Javadoc comment block while the @Deprecated is placed as a source code element.
Download Hundreds of Complimentary Industry Resources
Get hundreds of popular Industry magazines, white papers, webinars, podcasts, and more;
all available at no cost to you. With more than 600 complimentary offers, you'll find
plenty of titles to suit your professional interests and needs.
Click Here and Sign up today!


