Skip to content
Sharp

Spring Core · interview question

How can you address the issue of transaction self-invocation in Spring?

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

Correct answer

C. Refactor methods into different classes.

Why

To resolve transaction self-invocation issues, refactor methods so that a method requiring transaction management is called from a different class, allowing Spring's transactional proxies to be applied correctly.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →