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