Skip to content
javabypankaj
HomeLibraryPopularCommunity
07
Spring & Spring Boot
13 topics · 26 questions
1IoC Container & Bean Lifecycle0/42Dependency Injection0/333Bean Types & Stereotypes0/224Web Layer: Controllers & Request Mapping0/335Configuration & Profiles0/226AOP: Aspect-Oriented Programming0/117Caching: Spring Cache & Redis0/118Testing: Unit, Integration, Testcontainers0/119Spring Security: JWT, OAuth2, CSRF/CORS0/3310Logging & Monitoring0/2211Proxy, @Transactional Pitfalls & Internals0/2212Performance & Debugging0/1113Advanced: WebFlux, WebSocket, Virtual Threads0/11
1IoC Container & Bean Lifecycle42Dependency Injection33Bean Types & Stereotypes24Web Layer: Controllers & Request Mapping35Configuration & Profiles26AOP: Aspect-Oriented Programming17Caching: Spring Cache & Redis18Testing: Unit, Integration, Testcontainers19Spring Security: JWT, OAuth2, CSRF/CORS310Logging & Monitoring211Proxy, @Transactional Pitfalls & Internals212Performance & Debugging113Advanced: WebFlux, WebSocket, Virtual Threads1
13 topics26 Qs0%
01Core Java17002OOP3203Collections6704Exception Handling2805Concurrency & Multithreading12706Java Streams, Lambda & Functional Programming32807Spring & Spring Boot2608Transactions3209JPA & Hibernate6910Microservices19411Kafka & Messaging9112DevOps, CI/CD & Tooling13313Database & SQL14114REST API & Web4015Design Patterns & LLD5716Advanced Java7117Coding Problems: DSA49218AWS & Cloud4119Data Engineering19420QA, Testing & SDET4121System Design3522Security2023Behavioral / HR: STAR Method37
13Topics
26Questions
0%Complete
1 of 13 topics
Topics
1IoC Container & Bean Lifecycle0/44
2Dependency Injection0/333Bean Types & Stereotypes0/224Web Layer: Controllers & Request Mapping0/335Configuration & Profiles0/226AOP: Aspect-Oriented Programming0/117Caching: Spring Cache & Redis0/118Testing: Unit, Integration, Testcontainers0/119Spring Security: JWT, OAuth2, CSRF/CORS0/3310Logging & Monitoring0/2211Proxy, @Transactional Pitfalls & Internals0/2212Performance & Debugging0/1113Advanced: WebFlux, WebSocket, Virtual Threads0/11

IoC Container & Bean Lifecycle

Spring & Spring Boot·Topic 1 of 13·4 questions
Q1What is IoC Container: BeanFactory vs ApplicationContext?

IoC means the container controls object creation and wiring instead of your code doing it with new; ApplicationContext is the full-featured container and BeanFactory is its minimal lazy-loading parent.

Read Answer
Q2What is the Spring Bean Lifecycle?

Instantiate, inject dependencies, @PostConstruct, AOP proxy wrap, READY; on shutdown: @PreDestroy, destroy; the injected reference is a CGLIB proxy created in postProcessAfterInitialization, which is why self-invocation bypasses @Transactional.

Read Answer
Q3How does Spring handle circular dependencies?

Circular dependencies with constructors always fail because neither bean can be fully created first; the proper fix is to extract the shared concern into a third bean, not to use @Lazy or allow-circular-references.

Read Answer
Q4What are the Bean Scopes?

Singleton means one instance for all; prototype means a new instance every time; injecting a prototype into a singleton gives you ONE prototype forever; fix with ObjectProvider.getObject() to get a fresh instance per use.

Read Answer
Next · Topic 2Dependency Injection3 questions
javabypankaj© 2026 javabypankaj
PrivacyTerms
HomeSearchLibrary