|
INTERVIEW QUESTIONS
J2EE
SPRINGS
DETAILS
Question: What is IOC (or Dependency Injection)?
Answer: The basic concept of the Inversion of Control pattern (also known as dependency injection) is that you do not create your objects but describe how they should be created. You don't directly connect your components and services together in code but describe which services are needed by which components in a configuration file. A container (in the case of the Spring framework, the IOC container) is then responsible for hooking it all up.
i.e., Applying IoC, objects are given their dependencies at creation time by some external entity that coordinates each object in the system. That is, dependencies are injected into objects. So, IoC means an inversion of responsibility with regard to how an object obtains references to collaborating objects.
|
|
|
Category |
Springs Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7681 users |
Added on |
9/23/2014 |
Views |
66424 |
Rate it! |
|
|
Question:
What is IOC (or Dependency Injection)?
Answer:
The basic concept of the Inversion of Control pattern (also known as dependency injection) is that you do not create your objects but describe how they should be created. You don't directly connect your components and services together in code but describe which services are needed by which components in a configuration file. A container (in the case of the Spring framework, the IOC container) is then responsible for hooking it all up.
i.e., Applying IoC, objects are given their dependencies at creation time by some external entity that coordinates each object in the system. That is, dependencies are injected into objects. So, IoC means an inversion of responsibility with regard to how an object obtains references to collaborating objects. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Explain about integration of spring with AspectJ?
|
View Answer
|
|
Explain about transaction management in spring?
|
View Answer
|
|
Explain about exception wrapping?
|
View Answer
|
|
Explain about the different ways in which Spring JDBC can help you?
|
View Answer
|
|
Explain the three different methods which are provided by the Namespace Handler interface?
|
View Answer
|
|
Explain about auto wire support?
|
View Answer
|
|
Explain about how to deploy applications using POJOs?
|
View Answer
|
|
Explain why an organization needs to implement spring framework?
|
View Answer
|
|
Explain about dependency injection?
|
View Answer
|
|
Explain about inversion control behavior?
|
View Answer
|
|
State about the commonly used Bean Factory definitions?
|
View Answer
|
|
Explain about Bean definition Reader interface?
|
View Answer
|
|
Explain about the two models of the object which Bean Factory supports?
|
View Answer
|
|
Explain about Bean factory?
|
View Answer
|
|
Explain about portability of spring?
|
View Answer
|
|
State some benefits and advantages of spring framework?
|
View Answer
|
|
Explain about spring applications framework?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Springs Interview Questions & Answers - Exam Mode /
Learning Mode
|