@Deprecated Annotation was launched in java 5 Version. Program components annotated with @deprecated means it must not be used for any of the reason which given below:
Assembler produces a warning whenever a deprecated component is used. With the Java 9 launch, two new improvements are made to @deprecated Annotation
Boolean class javadoc on Java 9 to demonstrate the use of since attribute on @Deprecated annotation in the below given example:
System Class Javadoc on Java 9 to demonstrate the use of forRemoval attribute on @Deprecated Annotation, in the below-given example: