Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. @Deprecated annotation indicates that the marked element is deprecated and should no longer be used. The compiler generates a warning whenever a program uses a method, class, or field with the @Deprecated annotation. |
@Override annotation informs the compiler that the element is meant to override an element declared in a superclass.
@SuppressWarnings annotation tells the compiler to suppress specific warnings that it would otherwise generate.
@SafeVarargs annotation, when applied to a method or constructor, asserts that the code does not perform potentially unsafe operations on its varargsparameter. When this annotation type is used, unchecked warnings relating to varargs usage are suppressed.
@FunctionalInterface annotation, introduced in Java SE 8, indicates that the type declaration is intended to be a functional interface, as defined by the Java Language Specification.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   java8   annotations   pre defined annotations|
|What are concepts introduced with Java 5 ?|
|Which annotations are used in Hibernate ?|
|What is the use of @GeneratedValue annotation in Hibernate?|
|Give an Example of Annotations ?|
|What are meta Annotations ?|
|Name few meta-annotations ?|
|How to create a Junit to make sure that the tested method throws an exception ?|
|Explain Annotations ?|
|What entries we make in the hibernate config file if we are not using hbm files but Annotations ?|