MCQOPTIONS
Saved Bookmarks
This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Java Spring Framework knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Is this bean configuration correct? |
| A. | Yes |
| B. | No |
| C. | May be |
| D. | Can't say |
| Answer» C. May be | |
| 2. |
Declaring Beans using:-Ways to declare bean from a static field?Declaring a bean from a static field requires a built-in factory bean FieldRetrievingFactoryBean and fully qualified field name or instance field is specified in the list property.As an alternative to specifying the field name in the staticField property explicitly, you can set it as the bean name of FieldRetrievingFactoryBean.Is this bean configuration metadata correct? |
| A. | Static fieldFieldRetrievingFactoryBeanTrueTrueYes |
| B. | Object Propertiesutil:contantFalseFalseNo |
| C. | All of the mentionedAll of the mentionedMay beMay beMay be |
| D. | None of the mentionedNone of the mentionedCan't sayCan't sayCan't say |
| Answer» D. None of the mentionedNone of the mentionedCan't sayCan't sayCan't say | |
| 3. |
Comment on the following pieces of code. |
| A. | A and B are equivalent |
| B. | A and B provides different functionality |
| C. | Runtime Error in A |
| D. | Exception in B |
| Answer» B. A and B provides different functionality | |
| 4. |
What will be the output of following code? |
| A. | BeanCreationException |
| B. | IllegalArgumentException |
| C. | New Product will be created |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 5. |
Declaring Beans using:-Ways to declare bean from a static field? |
| A. | Static fieldFieldRetrievingFactoryBean |
| B. | Object Propertiesutil:contant |
| C. | All of the mentionedAll of the mentioned |
| D. | None of the mentionedNone of the mentioned |
| Answer» D. None of the mentionedNone of the mentioned | |
| 6. |
We can combine target Object and propertyPath properties as bean name/id of PropertyPathFactoryBean. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 7. |
Declaring Beans using:-Ways to declare bean from a static field?Declaring a bean from a static field requires a built-in factory bean FieldRetrievingFactoryBean and fully qualified field name or instance field is specified in the list property. |
| A. | Static fieldFieldRetrievingFactoryBeanTrue |
| B. | Object Propertiesutil:contantFalse |
| C. | All of the mentionedAll of the mentionedMay be |
| D. | None of the mentionedNone of the mentionedCan't say |
| Answer» E. | |
| 8. |
One factory class can also hold more than one factory method. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 9. |
Declaring Beans using:-Ways to declare bean from a static field?Declaring a bean from a static field requires a built-in factory bean FieldRetrievingFactoryBean and fully qualified field name or instance field is specified in the list property.As an alternative to specifying the field name in the staticField property explicitly, you can set it as the bean name of FieldRetrievingFactoryBean. |
| A. | Static fieldFieldRetrievingFactoryBeanTrueTrue |
| B. | Object Propertiesutil:contantFalseFalse |
| C. | All of the mentionedAll of the mentionedMay beMay be |
| D. | None of the mentionedNone of the mentionedCan't sayCan't say |
| Answer» C. All of the mentionedAll of the mentionedMay beMay be | |
| 10. |
Bean’s naming convention:-starts with lowercase, camelcase from then on.? |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 11. |
Beans can be created by which of the following properties? |
| A. | Static factory-method |
| B. | Instance Factory-Method |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |