Oracle
1Z0-860 · Question #212
1Z0-860 Question #212: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #212. The question stem and answer options stay visible for context.
Question
A developer writes an interceptor class called Foolnterceptor containing the following Aroundlnvoke method: 11. @Aroundlnvoke 12. public Object intercept(lnvocationContext ctx) { 13. return "intercepted"; 14.} Foolnterceptor is applied to a business method in a stateless session bean: 11. @lnterceptors(Foolnterceptor.class) 12. public String testzero(int i) { 13. return (i == 0) ? "zero""not zero"; 14. } Which describes the result when a client invokes the testzero method with a value of 1?
Options
- AThe intercept method is NEVER invoked.
- BThe client receives are turn value of "zero".
- CThe client receives areturn value of "not zero".
- DThe client receives are turn value of "intercepted".
Unlock 1Z0-860 to see the answer
You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.