What are the methods of bean life cycle?



What are the methods of bean life cycle?..

Answer / Hareesh Gaurav

The methods in Spring Bean life cycle include: init-method (initialization method) - called after a bean is fully constructed but before any other beans that it references have been initialized.nndestroy-method (cleanup method) - called right before the bean is destroyed by the container.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is the difference between view and viewmodel?

1 Answers  


What is aspect?

1 Answers  


What are the types of advice?

1 Answers  


What is an advice?

1 Answers  


What is @repository annotation in spring boot? : Spring Boot

1 Answers  


What is beanfactory and applicationcontext in spring?

1 Answers  


What is resultsetextractor?

1 Answers  


What is the meaning of cross cutting concerns?

1 Answers  


What is core spring?

1 Answers  


What is repository pattern?

1 Answers  


What are the types of dependency injection spring supports?

1 Answers  


What is the scope of stateful bean in spring?

1 Answers  


Categories