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.
|Java - Interview Questions and Answers|
|Ans. Annotations, a form of metadata, provide data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code they annotate. Annotations have a number of uses, among them:|
â€¢ Information for the compiler â€” Annotations can be used by the compiler to detect errors or suppress warnings.
â€¢ Compile-time and deployment-time processing â€” Software tools can process annotation information to generate code, XML files, and so forth.
â€¢ Runtime processing â€” Some annotations are available to be examined at runtime.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   annotations basic   frequent|
|What are concepts introduced with Java 5 ?|
|Which annotations are used in Hibernate ?|
|Give an Example of Annotations ?|
|What are meta Annotations ?|
|How to create a Junit to make sure that the tested method throws an exception ?|
|What is the use of @GeneratedValue annotation in Hibernate?|
|What are few of the Annotations pre defined by Java?|
|Name few meta-annotations ?|
|What entries we make in the hibernate config file if we are not using hbm files but Annotations ?|