Skip to content
Sharp

Spring Core · interview question

Why can @Transactional fail when one method inside a bean calls another transactional method on the same bean?

Multiple choiceMediumchapter-9-curatedpremiumspring-coretransactions-and-proxies
Choose one answer
Answer and explanation

Correct answer

C. Because the internal call can bypass the Spring proxy that applies the transaction advice

Why

Spring transaction advice is often implemented with proxies. A self-call inside the same bean can skip that proxy boundary, so the transactional behavior may not activate the way the developer expects.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →