Annotation interview questions

Annotation interview questions

Take as many assements as you can to improve your validate your skill rating

Total Questions: 10

1. Annotations which are applied to other annotations are called meta annotations.

Correct Answer is : TRUE

2. Which version of Java introduced annotation?

Correct Answer is : Java 5

3. Annotation type definition looks similar to which of the following?

Correct Answer is : Interface

4. Which of the following is not pre defined annotation in Java?

Correct Answer is : @Overriden

5. Which one of the following annotations is not used in Hibernate?

Correct Answer is : @Query

6. Which one of the following is not ID generating strategy using @GeneratedValue annotation?

Correct Answer is : Manual

7. Which one of the following is not an annotation used by Junit with Junit4?

Correct Answer is : @Ignored

8. Using which annotation non visible or private method can be tested?

Correct Answer is : @VisibleForTesting

9. Which of the following annotation is used to avoid execution of Junits?

Correct Answer is : @ignore

10. Which is the Parent class of annotation class?

Correct Answer is : Object

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon