13.07.2015 Views

Spring Core Certification 3 Mock Exam - Java & Moi

Spring Core Certification 3 Mock Exam - Java & Moi

Spring Core Certification 3 Mock Exam - Java & Moi

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4. Definition of a point cutQuestion 25Correct answer: 21. Definition of an advice2. Definition of a pointcut3. Represents nothingQuestion 26Correct answers: 1, 3Select methods that match with the following pointcut:execution(* com.test.service..*.*(*))1. True2. The pattern (*) matches a method taking one parameter of any type3. The com.test.service.account sub-package matches the pointcut4. False for the same reason as answer number 2.Question 27Correct answers: 21. Interception of constructors requires the use of <strong>Spring</strong>-driven native AspectJ weaving insteadof <strong>Spring</strong>'s proxy-based AOP framework2. The @annotation designator enables to select methods that are annotated by a givenannotation3. The staticinitialization AspectJ designator is not supported by <strong>Spring</strong> AOP4. Pointcut expressions can be combined using &&, || and !Question 28Correct answers: 11. The execution of all public method2. The * return type pattern indicates any return value or void3. The (..) param pattern indicates 0, 1 or many parameters4. No package name is specified. So classes of any package could match.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!