1.

What Are The Changes Made To @deprecated Annotation In Java 9?

Answer»

With Java 9, two new enhancements are made to @Deprecated annotation:-

  1. forRemoval:- Indicates whether the ANNOTATED element is subject to removal in a future version. The default value is false.
  2. SINCE:- Returns the version in which the annotated element BECAME deprecated. The default value is the empty STRING.

With Java 9, two new enhancements are made to @Deprecated annotation:-



Discussion

No Comment Found