

MCQOPTIONS
Saved Bookmarks
This section includes 20 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
1. |
Spring doesn’t cope up with pdf and excel views. |
A. | True |
B. | False |
Answer» C. | |
2. |
To use JSR-303 bean validation in a web application, dependencies to be added in maven. |
A. | javax.validation |
B. | org.hibernate |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
3. |
Validator field is not assigned to any bean, but rather a factory class of the type. |
A. | javax.validation.Validator |
B. | javax.validation.ValidatorFactory |
C. | javax.validation.ValidatorFactor |
D. | none of the mentioned |
Answer» C. javax.validation.ValidatorFactor | |
4. |
A field named validator is of type. |
A. | javax.validation.Validator |
B. | javax.validation.ValidatorFactory |
C. | javax.validation.ValidatorFactor |
D. | none of the mentioned |
Answer» B. javax.validation.ValidatorFactory | |
5. |
Annotation which receives a value in the form regexp=”[email protected]+\\.[a-z]+”. |
A. | @Pattern |
B. | @EmailRecognizer |
C. | |
D. | @Null |
Answer» B. @EmailRecognizer | |
6. |
JSR-303 can’t access java beans directly. |
A. | True |
B. | False |
Answer» C. | |
7. |
VALIDATOR_FIELD_IS_NOT_ASSIGNED_TO_ANY_BEAN,_BUT_RATHER_A_FACTORY_CLASS_OF_THE_TYPE.?$ |
A. | javax.validation.Validator |
B. | javax.validation.ValidatorFactory |
C. | javax.validation.ValidatorFactor |
D. | none of the mentioned |
Answer» C. javax.validation.ValidatorFactor | |
8. |
To use JSR-303 bean validation in a web application, dependencies to be added in maven.$ |
A. | javax.validation |
B. | org.hibernate |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
9. |
To hold any errors detected from validating the instance of beans.$ |
A. | javax.validation.Validator |
B. | javax.validation.ValidatorFactory |
C. | javax.validation.ValidatorFactor |
D. | javax.validation.ConstraintViolation |
Answer» E. | |
10. |
Spring MVC supports generating PDF files using which of the following libraries. |
A. | iText library |
B. | iJText library |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» B. iJText library | |
11. |
The view classes for Excel view is/are:- |
A. | AbstractExcelView |
B. | AbstractJExcelView |
C. | None of the mentioned |
D. | All of the mentioned |
Answer» E. | |
12. |
Spring MVC supports generating Excel files using which of the following libraries. |
A. | Apache POI library |
B. | JExcelAPI library |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
13. |
Spring doesn’t cope up with pdf and excel views.$ |
A. | True |
B. | False |
Answer» C. | |
14. |
A field named validator is of type? |
A. | javax.validation.Validator |
B. | javax.validation.ValidatorFactory |
C. | javax.validation.ValidatorFactor |
D. | none of the mentioned |
Answer» B. javax.validation.ValidatorFactory | |
15. |
Annotation used to indicate a field has to have a minimum of 2 characters. |
A. | @NotNull |
B. | @Size |
C. | @MaxSize |
D. | @size |
Answer» C. @MaxSize | |
16. |
Annotation which indicates a field cannot be a null. |
A. | @NotNULL |
B. | @NotNull |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» C. All of the mentioned | |
17. |
JSR-303 can’t access java beans directly.$ |
A. | True |
B. | False |
Answer» C. | |
18. |
For validating beans Spring supports. |
A. | ad-hoc technique |
B. | jsr-303 |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
19. |
JSR-303 or bean validation can access beans through annotations. |
A. | True |
B. | False |
Answer» B. False | |
20. |
To validate Java beans in a web application using annotations. |
A. | XML |
B. | Java Based |
C. | JAR-303 standard |
D. | All of the mentioned |
Answer» E. | |