🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Spring AOP and Proxies: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Who actually begins and commits the transaction for a @Transactional service method?
  2. Q2. In AOP, what is a pointcut?
  3. Q3. What does this print? (code)
  4. Q4. Spring Boot uses CGLIB proxies by default. What does a CGLIB proxy do?
  5. Q5. A @Transactional annotation is placed on a private method. What happens?
  6. Q6. Method a() calls b() in the same bean; b() has @Async. The controller calls a(). Does b() run asynchronously?
  7. Q7. What does this print? (code)
  8. Q8. Which advice type can decide not to call the real method at all?
  9. Q9. What is the cleanest fix for the self-invocation problem?
  10. Q10. Which is a cross-cutting concern?