Showing posts with label Spring. Show all posts
Showing posts with label Spring. Show all posts

Friday, 3 August 2012

Java Training: - Elaborate Bean lifecycle in Spring framework?

  • The spring container finds the beans definition from the XML file and instantiates the bean
  • Using the dependency injection, spring populates all of the properties as specified in the bean definition
  • If the bean implements the BeanNameAware interface, the factory calls setBeanName() passing the bean’s ID
  • If the bean implements the BeanFactoryAware interface, the factory calls setBeanFactory(), passing an instance of itself
  • If there are any BeanPostProcessors associated with the bean, their post ProcessBeforeInitialization() methods will be called
  • If an init-method is specified for the bean, it will be called
  • Finally, if there are any BeanPostProcessors associated with the bean, their postProcessAfterInitialization() methods will be called
See the following video on Inheritance between beans and Spring in Java: -



Click to get Java Training

Regards,

Get more Java Training from author’s blog

Friday, 13 January 2012

JAVA INTERVIEW QUESTIONS: - 20 BASICS INTERVIEW QUESTIONS ON JAVA? Part: -2.

  • What is a native method?
  • Does Java provide any construct to find out the size of an object?
  • Is Empty .java file a valid source file?
  • Can a .java file contain more than one java classes?
  • What is the difference between an argument and a parameter?
  • What is UNICODE?
  • What are Transient and Volatile Modifiers?
  • What are the different scopes for Java variables?
  • What are wrapper classes?
  • What is a the difference between System.err and System.out?
  • What are the contracts defined by .equals()?
  • If two objects are considered equal by .equals() , can it be said they has same hashCode()?
  • If two objects have same hashCode() is it necessary they will be equal by using .equals() method?
  • What contracts hashCode () defines?
  • What is the difference between == and equals?
  • What is the difference between List and List (not parameterized list and list parameterized by String) in Java?
  • What are generics in jdk1.5?
  • Are generics covariant?
  • What are Lower-bounded wildcards in generics?
  • What is Upper bounded wildcards in generics?
View the following video on Inheritance between beans and Spring in Java: -



For more on  Java interview questions so click and visit.

Regards,

Author’s more on Java interview questions