← Quiz: Relationships and Transactions: all 10 questions
Quiz: Relationships and Transactions · Question 3 of 10
A @Transactional method is called from another method in the same class. What happens?
A @Transactional method is called from another method in the same class. What happens?
- A.A new transaction always starts
- B.The call bypasses Spring's proxy, so the annotation has no effect
- C.The app fails to start
- D.Both methods share a nested transaction
Answer & explanation
Correct answer: The call bypasses Spring's proxy, so the annotation has no effect
Self-invocation skips the proxy.
Can you get the rest right without peeking?
Take the timed Quiz: Relationships and Transactions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →