This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are the limitations of autowiring? |
Answer»
|
|
| 2. |
What is autowiring and name the different modes of it? |
|
Answer» The IoC container autowires relationships between the application beans. Spring LETS collaborators RESOLVE which BEAN has to be wired automatically by inspecting the contents of the BeanFactory.
|
|
| 3. |
What do you understand by Bean Wiring. |
Answer»
|
|
| 4. |
Explain Bean life cycle in Spring Bean Factory Container. |
|
Answer» The Bean life cycle is as FOLLOWS:
|
|
| 5. |
What are the bean scopes available in Spring? |
|
Answer» The Spring Framework has FIVE scope supports. They are:
Note: The last three scopes are available only if the users use web-aware APPLICATIONCONTEXT containers. |
|
| 6. |
How is the configuration meta data provided to the spring container? |
|
Answer» There are 3 ways of providing the configuration metadata. They are as follows:
|
|
| 7. |
What are Spring Beans? |
Answer»
|
|
| 8. |
Explain the difference between constructor and setter injection? |
Answer»
|
|
| 9. |
What do you understand by Dependency Injection? |
|
Answer» The MAIN idea in Dependency Injection is that you don’t have to create your objects but you just have to describe how they should be created.
|
|
| 10. |
What do you mean by IoC (Inversion of Control) Container? |
|
Answer» Spring container forms the core of the Spring FRAMEWORK. The Spring container uses Dependency Injection (DI) for MANAGING the application components by creating objects, wiring them together ALONG with configuring and managing their overall life cycles. The instructions for the spring container to do the tasks can be provided either by XML CONFIGURATION, Java annotations, or Java code. |
|
| 11. |
What is a Spring configuration file? |
|
Answer» A Spring configuration file is basically an XML file that mainly contains the classes INFORMATION and DESCRIBES how those classes are configured and linked to each other. The XML configuration files are verbose and CLEANER. |
|
| 12. |
What are the features of Spring Framework? |
Answer»
|
|
| 13. |
What is Spring Framework? |
Answer»
|
|