Skip to content
Sharp

Spring Core · interview question

What challenge does transaction self-invocation pose in Spring, and how can it be addressed?

Multiple choiceHardchapter-9-curatedpremiumspring-coreinversion-of-control-ioc
Choose one answer
Answer and explanation

Correct answer

A. It breaks transaction management; use interfaces for proxying.

Why

Transaction self-invocation is problematic because Spring's proxy-based AOP does not intercept calls made within the same class. This can be addressed by refactoring the method to an interface or another bean to ensure proper proxying.

Test yourself on Spring Core

A free test with instant, explained results. No account needed.

Start free test
All Spring Core questions →