Skip to content
Sharp

Spring Core · interview question

Why does self-invocation of a method with @Transactional annotation not work as expected in Spring?

Multiple choiceHardchapter-9-curatedpremiumspring-coreapplication-properties
Choose one answer
Answer and explanation

Correct answer

B. The proxy mechanism cannot intercept calls within the same class.

Why

Spring uses proxies to manage transaction boundaries. When a method within the same class is called, it bypasses the proxy, preventing the transaction management from taking effect.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →