JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Annotation interview questions
Annotation interview questions
Back
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.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
2. Which version of Java introduced annotation?
A. Java 5
B. Java 6
C. Java 7
D. Java 8
Show Correct Answer
Correct Answer is :
Java 5
3. Annotation type definition looks similar to which of the following?
A. Method
B. Class
C. Interface
D. Field
Show Correct Answer
Correct Answer is :
Interface
4. Which of the following is not pre defined annotation in Java?
A. @Deprecated
B. @Overriden
C. @SafeVarags
D. @FunctionInterface
Show Correct Answer
Correct Answer is :
@Overriden
5. Which one of the following annotations is not used in Hibernate?
A. @Entity
B. @Column
C. @Basic
D. @Query
Show Correct Answer
Correct Answer is :
@Query
6. Which one of the following is not ID generating strategy using @GeneratedValue annotation?
A. Auto
B. Manual
C. Identity
D. Sequence
Show Correct Answer
Correct Answer is :
Manual
7. Which one of the following is not an annotation used by Junit with Junit4?
A. @Test
B. @BeforeClass
C. @AfterClass
D. @Ignored
Show Correct Answer
Correct Answer is :
@Ignored
8. Using which annotation non visible or private method can be tested?
A. @VisibleForTesting
B. @NonVisibleForTesting
C. @Visible
D. @NonVisible
Show Correct Answer
Correct Answer is :
@VisibleForTesting
9. Which of the following annotation is used to avoid execution of Junits?
A. @NoTest
B. @explicit
C. @avoid
D. @ignore
Show Correct Answer
Correct Answer is :
@ignore
10. Which is the Parent class of annotation class?
A. Class
B. Object
C. Main
D. Super
Show Correct Answer
Correct Answer is :
Object
Similar Interview Questions
Search for latest jobs
Find Jobs