GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  Spring

 Print  |  
Question:  dependency injection

Answer: what is dependency injection ??


January 01, 2008 09:48:05 #1
 Rajeev_y69   Member Since: December 2006    Total Comments: 1 

RE: dependency injection
 
Dependency injection or Inversion of control are the two terms used for same thing. In case of DI, we define the process of instatiating an object into a non java class generally xml file.

Instead of using new word to instatiate any object, reference of an object is retrieved from an config file.
     

 

Back To Question