VMware vRealize Automation 8.x (2022) — Question 45
Which two statements about pointcut expressions are true? (Choose two.)
Answer options
- A. A pointcut expression cannot specify the type of parameters.
- B. A pointcut expression will throw an exception if no methods are matched.
- C. A pointcut expression cannot have a wildcard for a method name.
- D. A pointcut expression can include operators such as the following: && (and), || (or), ! (not).
- E. A pointcut expression can be used to select join points which have been annotated with a specific annotation.
Correct answer: D, E
Explanation
Answer D is correct because pointcut expressions can indeed utilize logical operators like &&, ||, and ! to combine different conditions. Answer E is also correct as pointcut expressions can match join points that have specific annotations. Options A, B, and C are incorrect because they misrepresent the capabilities and behaviors of pointcut expressions.