S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation helps with graceful shutdown and resource cleanup?

  • (A) @Shutdown
  • (B) @Dispose
  • (C) @PreDestroy
  • (D) @PostShutdown
  • Correct Answer - Option(C)
  • Views: 15
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@PreDestroy is used to define a method that is called before the bean is destroyed.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.