Skip to content
Sharp

Spring Core · interview question

In the context of Spring, what issue arises when a transaction-managed method calls another method in the same class?

Multiple choiceHardchapter-9-curatedpremiumspring-corebean-scope
Choose one answer
Answer and explanation

Correct answer

B. The transaction is not applied.

Why

When a transaction-managed method calls another method in the same class, the transaction may not be applied because Spring's proxies are not used for internal method calls. This leads to the method being executed without transaction management.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →