Loading

Quipoin Menu

Learn • Practice • Grow

spring / Joinpoints in AOP
mcq
Direction: Choose the correct option

Q1.

What is a join point in Spring AOP?
A. A point during program execution, such as method execution
B. A class that contains aspects
C. A pointcut expression
D. An advice
Direction: Choose the correct option

Q2.

Which join points does Spring AOP support?
A. Method execution
B. Constructor invocation
C. Field access
D. All of the above
Direction: Choose the correct option

Q3.

What is the JoinPoint interface used for?
A. To access details of the join point in advice
B. To define pointcuts
C. To create aspects
D. To weave aspects
Direction: Choose the correct option

Q4.

Which method of JoinPoint returns the method signature?
A. getSignature()
B. getMethod()
C. getArgs()
D. getTarget()
Direction: Choose the correct option

Q5.

How do you get the target object from a JoinPoint?
A. getTarget()
B. getThis()
C. getBean()
D. getObject()
Direction: Choose the correct option

Q6.

What does ProceedingJoinPoint add to JoinPoint?
A. proceed() method to execute the target method
B. getArgs()
C. getSignature()
D. getTarget()
Direction: Choose the correct option

Q7.

Can you modify arguments in a join point?
A. Yes, using ProceedingJoinPoint.proceed(Object[] args)
B. No, arguments are immutable
C. Only in before advice
D. Only in after advice
Direction: Choose the correct option

Q8.

What is the difference between getTarget() and getThis() in JoinPoint?
A. getTarget() returns the proxied object; getThis() returns the proxy itself
B. They are the same
C. getTarget() returns proxy; getThis() returns target
D. None
Direction: Choose the correct option

Q9.

Which method returns the arguments of the join point?
A. getArgs()
B. getArguments()
C. getParams()
D. getParameters()
Direction: Choose the correct option

Q10.

What is a static part of a join point?
A. The part that is constant across all join points of the same type, like method signature
B. The dynamic arguments
C. The target object
D. None