Go back to 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam

Question :-

A developer writes an interceptor class called FooInterceptor containing the following AroundInvoke method: 11. @AroundInvoke 12. public Object intercept (InvocationContext ctx) { 13. return "intercepted"; 14. } FooInterceptor is applied to a business method in a stateless session bean: 11. @Interceptors (FooInterceptor.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?
The interceptor method is NEVER invoked.
The client receives a return value of "zero".
The client receives a return value of "not zero".
The client receives a return value of "intercepted".

Want to practice for 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam ? Click here.