Java / Annotations
List few annotations defined in Java SDK.
Many annotations are defined in java.lang and java.lang.annotation package.
@Deprecated annotation indicates that the element is deprecated and no longer in use. The compiler issues a warning when such element- Class, method or field with @Deprecated annotation is used.
@Override annotation specifies that the element overrides its super class definition.@SuppressWarnings suppresses the compiler warnings that it would generated.
@SafeVarargs suppresses unchecked warning related to varArgs usage and asserts that the code performs only safe operations on the varArg parameters.
@FunctionalInterface identifies a functional interface as part of Java 8 specification.
More Related questions...