← Quiz: Spring AOP and Proxies: all 10 questions
Quiz: Spring AOP and Proxies · Question 4 of 10
Spring Boot uses CGLIB proxies by default. What does a CGLIB proxy do?
Spring Boot uses CGLIB proxies by default. What does a CGLIB proxy do?
- A.Creates a subclass of the bean's class at runtime and overrides its methods
- B.Copies the bean's source code
- C.Requires the bean to implement an interface
- D.Edits the bean's bytecode on disk
Answer & explanation
Correct answer: Creates a subclass of the bean's class at runtime and overrides its methods
That is why final classes and final or private methods cannot be advised.
Can you get the rest right without peeking?
Take the timed Quiz: Spring AOP and Proxies quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →