Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is IOC in spring?

Answers were Sorted based on User's Feedback



What is IOC in spring?..

Answer / sujeev

IOC(Inversion of control)is a technique that allows object
configuration to be moved out of code and into a
configuration file. With Spring IOC, this is typically done
with an XML file.
The steps to use Spring IOC are:

1. Write Java Bean classes, with getter and setter methods
for each property to be configured by Spring.
2. Create an XML file that describes the Java Beans to be
configured.
3. Use an XMLBeanFactory to create configured beans. There
are other ways to read bean descriptions, but using an
XmlBeanFactory is more common.

Is This Answer Correct ?    80 Yes 17 No

What is IOC in spring?..

Answer / shoban

Ioc is the core container for complete spring framework.
Ioc is designed to just perform "dependency injection".
Spring core module comes with basic spring container whose
name will be "BeanFactory"
Ioc can be designed based on Servicelocator designpattern.
Spring basically supports 2 kinds of injection
1.setter injection
2.constructor injection.
Based on the injection you choose and write proper java code
in bean class.
Dependency injection uses the hollywood principal "Don't
call me i will call u".

The steps to use Spring IOC are:

1. Write Java Bean classes, with getter and setter methods
for each property to be configured by Spring.
2. Create an XML file that describes the Java Beans to be
configured.
3. Use an XMLBeanFactory to create configured beans. There
are other ways to read bean descriptions, but using an
XmlBeanFactory is more common.

Is This Answer Correct ?    17 Yes 4 No

What is IOC in spring?..

Answer / vinay

IOC is an architectural pattern describes to have an external entity to wire the objects at each creation time

Is This Answer Correct ?    15 Yes 3 No

What is IOC in spring?..

Answer / krishna chandra mohan a

IoC or Inversion of Control is a design pattern that
provided instances of a bean or class to another when they
needed. That means, we do not have to use new keyword to
create instance of dependent class. We will just create a
reference of dependent class and IoC pattern will set the
instance to the reference when needed.

Is This Answer Correct ?    9 Yes 0 No

What is IOC in spring?..

Answer / madhusudhakar

when we develop a project we will be providing code to take
care of creating the objects and setting dependencies of the
objects(this is normal course).

if we use spring container we need not creating the code for
creating the objects and setting up the dependencies. the
spring container takes care of this task . the task that is
normally carried out by our code is getting carried out by
the spring container this is called as IOC

Is This Answer Correct ?    4 Yes 0 No

What is IOC in spring?..

Answer / sagar date

The org.springframework.beans.factory.BeanFactory is the
actual representation of the Spring IoC
container that is responsible for containing and otherwise
managing the aforementioned beans.
The BeanFactory interface is the central IoC
container interface in Spring. Its responsibilities include
instantiating or sourcing application objects, configuring
such objects, and assembling the dependencies
between these objects.

Is This Answer Correct ?    4 Yes 2 No

What is IOC in spring?..

Answer / somnath mane

The basic concept of Inversion of control pattern is
that you do not create objects but describe how they should
be created.

Is This Answer Correct ?    6 Yes 4 No

What is IOC in spring?..

Answer / surendra

inversion of control is an architectural pattern describing an external entity(container)used to wire objets at creation time by injecting there dependencies

Is This Answer Correct ?    4 Yes 2 No

What is IOC in spring?..

Answer / saroj kumar das

IOC is an principle where an external agency is providing
the collaborators to the applicationcontext instead of
component is looking for them.

Is This Answer Correct ?    3 Yes 1 No

What is IOC in spring?..

Answer / alok kumar ranjan

IoC or Inversion of Control is one of the core features of
Spring. It helps in simplifying the implementation of
business logic. To use the Spring Framework to its full
potential, understanding the IoC container of the framework
is essential.

Is This Answer Correct ?    19 Yes 21 No

Post New Answer

More Java J2EE AllOther Interview Questions

Write a interface "CarOperations" with the following methods void turnOnEngin() void turnOffEngin() void turnOnLigths() void turnOffLights() void turnLeft() void turnRight() void accelerate() void deaccelerate() void putBreaks() void releaseBreaks()

1 Answers  


what is difference between struts1.2 and struts2.0

1 Answers  


my interviewer asked me what technical specification you used how to answer that question

0 Answers  


How to implement or use the singleton class in java?

3 Answers  


Explain JSP life cycle?

2 Answers   Accenture,


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

0 Answers  


What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose. Infosys 2 In which way does a Primitive data type is passed ? Sun- Microsystems 4 what is the use of declaring constructor as private? Sai- Softech 5 what is difference between global methods and local methods? 1 What is meant by class loader and how many types are there? Apple 1 what is meaning of JIT? 4 What is an abstract class? Wipro 5 what is filters and its use? Virtusa 2 why is multiple inheritance not allowed in java? Elementus-Technologies 7 Differences between jdk 1.4 and 1.5 Wipro 4 is JVM platform dependent or independent..? IBM 6 what is main purpose of abstract class? 5 what is difference between colection and collections? Tech-Mahindra 11 What error occurs if a try-catch-finally statement sequence does not have a catch clause? 2 Explain the difference between scrollbar and scrollpane? 1 Explain the differences between public, private, protected and static? 4 Explain the difference between getAppletInfo and getParameterInfo? 1 Is Cegonsoft Pvt.Ltd. a good Institute? 4 Why only one Class is public in one file? Explain in details. Thanks in Advance. 11 Which method will get invoked first in a stand alone application?

0 Answers  


What are the types of interface used in the java collections? : java collections

0 Answers  


How do I find jre path in windows?

0 Answers  


Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

0 Answers   NSN,


Which interface does java.util.hashtable implement?

0 Answers  


What is deque in the java collections framework? : java collections

0 Answers  


Categories