adplus-dvertising
frame-decoration

Question

Which method is used to gracefully shutdown all the bean processes after closing the spring container?

a.

shutdownHook

b.

destroy method

c.

none of the mentioned

d.

all of the mentioned

Posted under Java Spring Framework

Answer: (a).shutdownHook

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which method is used to gracefully shutdown all the bean processes after closing the spring container?

Similar Questions

Discover Related MCQs

Q. Which method is used to register BeanPostProcessor?

Q. In application context, BeanPost Processors are registered using addBeanPostProcessors method

Q. Which Interface for bean Post Processor is used to distinguish between checked beans

Q. Which method of bean post processors is used to check path existence

Q. It’s possible to replace the original bean instance with a brand-new instance in your bean post processor

Q. PathCheckingBeanPostProcessor will not work properly in case of:-

Q. Which bean factory post processor externalizes part of the bean configurations into a properties file

Q. Which interface defines methods for resolving text messages

Q. Which interface is used to listen to certain events

Q. Which method is used to publish your own custom event

Q. Which of the following is a well known recognized event

Q. Which event is provoked when web request comes into action

Q. Which of the following is used to convert property values to text Values?

Q. Which property editor is used to specify a URL String for a property of the URL type?

Q. Which interface is used to create your own property editors?

Q. Which of the following property editors are registered by Spring?

Q. What are the ways to create custom Property Editors?

Q. Method which converts property into a string value

Q. Method that converts string into a property value

Q. The property value is retrieved by:-