Identify the correct statement about the following pointcut expression. Assume that these 2 classes do not inherit from one another:


Identify the correct statement about the following pointcut expression. Assume that these 2 classes do not inherit from one another:

Execution (* rewards.service.MyClass.*(..)) && execution(* rewards.service2.MyOtherClass.*(..))

(Select one)
A . Executions of all public method calls in MyClass and MyOtherClass will be selected by this pointcut
B . Public methods in MyClass and MyOtherClass which take zero arguments will not be selected by this pointcut
C . Public methods in MyClass and MyOtherClass which take more than one argument will not be selected by this pointcut
D . This pointcut will never select any join points

Answer: D

Leave a Reply

Your email address will not be published.