Interview Prep Zoneby CuriouserLabs
🔄

Bean Lifecycle & Scopes

From instantiation to destruction, the post-processor pipeline, and scope interactions that bite in production.

  1. 1

    Walk through the complete lifecycle of a Spring bean, from definition to destruction.

    senior🎬 animated
  2. 2

    Explain bean scopes. What goes wrong when a singleton depends on a prototype (or request-scoped) bean, and how do you fix it?

    staff
  3. 3

    BeanFactoryPostProcessor vs BeanPostProcessor — what's the difference, and what real features are built on each?

    staff
  4. 4

    How do ApplicationContext events work, and how do you run code at the right moment during startup/shutdown?

    senior
  5. 5

    ApplicationContext vs BeanFactory, and when do context hierarchies or multiple contexts make sense?

    architect