Skip to content
Sharp

Dependency Injection · interview question

What issue might arise from using self-invocation in a transactional method within a Spring Boot application?

Multiple choiceHardchapter-9-curatedpremiumdependency-injectionconstructor-vs-field-injection
Choose one answer
Answer and explanation

Correct answer

D. Transactional proxy will not intercept the self-invocation

Why

Spring's transactional proxy mechanism won't intercept self-invocations within the same class, which means that the transactional behavior defined on the method will not be applied and can lead to unexpected results.

Test yourself on Dependency Injection

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

Start free test
All Dependency Injection questions →