Easy Tutorial
❮ Java Stringtokenizer Example Arrays Min Max ❯

Java 9 Improved @Deprecated Annotation

Java 9 New Features

The @Deprecated annotation can mark the status of Java API elements, which can be one of the following:

In Java 9, the annotation has added two new elements: since and forRemoval.

The following example is from the Java 9 documentation for the Boolean class, where the @Deprecated annotation uses the since attribute: Boolean Class.

The following example is from the Java 9 documentation for the System class, where the @Deprecated annotation uses the forRemoval attribute: System Class.

Java 9 New Features

❮ Java Stringtokenizer Example Arrays Min Max ❯