The initialization phase
1) Read the xml, all the xml and all the Configuration annotations in your classes and create BeanDefinition objects of it.
2) BeanFactoryPostProcessor step. Can change the BeanDefinition objects
3) Instantiate your objects, set dependenies, set properties
So in #3 above that is when your printlns are printing at the top.
Hope that helps, and hope the link explains it in much more detail for you.
Somprakash Rai wrote: I am going to face my 1st interview on spring... Can anyone give me the list of interview question for spring IOC and AOP ?
A list of interview questions ? What are you planning to do with it ? Remember it ? You think it will give you a job ? I think it would be wiser to go to the interview with what you know, rather than with what you don't.