1.

Which of the following is not pre defined annotation in Java?(a) @Deprecated(b) @Overriden(c) @SafeVarags(d) @FunctionInterfaceI got this question at a job interview.I need to ask this question from Annotations in division Application Lifecycle & Annotations of Java

Answer»

The correct ANSWER is (B) @Overriden

The BEST EXPLANATION: @Overriden is not a pre DEFINED annotation in Java. @Depricated, @Override, @SuppressWarnings, @SafeVarags and @FunctionInterface are the pre defined annotations.



Discussion

No Comment Found

Related InterviewSolutions