Skip to content
Sharp

Spring Core · interview question

How would you explain a potential consequence of self-invocation in a Spring bean with @Transactional methods in an interview?

Multiple choiceHardchapter-9-curatedpremiumspring-corecontrollers-services-repositories
Choose one answer
Answer and explanation

Correct answer

C. Transaction not applied

Why

When a method within a Spring bean calls another @Transactional method in the same class, the transaction is not applied because the call bypasses the proxy that handles the transaction management.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →