What is the effect of applying @Deprecated to an API element in Java 11?
-
A
The element is removed from the classpath at compile time
-
B
The compiler emits a warning when the element is used, and it appears in Javadoc as deprecated
-
C
The element throws DeprecatedException at runtime if called
-
D
The element is hidden from IDE code completion only