Skip to content
Sharp

Spring Core · interview question

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

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

Correct answer

A. Use AOP to handle method calls

Why

Using Aspect-Oriented Programming (AOP) allows the method calls to be intercepted and transaction management to be applied, even for self-invocation scenarios. This ensures that transactional behavior is properly enforced.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →