1.

What changes are made to Deprecated annotation in Java 9?

Answer»

With Java 9, two new enhancements are made to Deprecated annotation.

  • forRemoval − Indicates whether the annotated element is subject to removal in a future version. The default value is false.

  • since − Returns the version in which the annotated element became deprecated. The default value is the empty string.



Discussion

No Comment Found