Sreejobs Logo
   For Latest Job Updates  
sreenutech.com Online Exams
Home Govt Jobs IT Fresher Jobs IT Exp Jobs IT Walk-Ins MBA Jobs BPO Jobs Register FAQ’s Post Job Contact Us
Search:
SreeJob Fees   Feeds
Hot Jobs
Welcome Guest
Login | Register
Total No Of Questions: 100.
1) 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?


2) The Java Persistence API defines the Query interface. Which two statements about the Query.executeUpdate method are true? (Choose two.)


3) A developer writes a stateless session bean with one local business interface and with container-managed transactions. All business methods have transaction attribute REQUIRED. The bean has an injected field sessionCtx of the type SessionContext. Which two operations are allowed in a business method of the bean? (Choose two.)


4) A developer wants to perform programmatic access control inside EJB 3.0 session beans. This is needed because some permissions can be determined only at application runtime.Which method achieves this goal?


5) A developer wants to create a business interface for both local and remote usage.For performance reasons the remote interface should NOT be called by a client in the same JVM. Which statement is required to accomplish this, assuming there is no deployment descriptor?


6) Given the following stateful session bean : 10. @Stateful 11. public class VideoBean implements Video { 12. public void methodA() {} 13. 14. @TransactionAttribute(TransactionAttributeType.SUPPORTS) 15. public void methodB() {} 16. 17. public void methodC() {} 18. @TransactionAttribute(TransactionAttributeType.REQUIRED) 19. 20. public void methodD() {} 21. } Assuming no other transaction-related metadata, which is true?


7) A developer's objective is to end the persistence context associated with an application-managed entity manager. Which statement is correct?


8) A session bean's business method throws an exception during execution.Which two are responsibilities of the Bean Provider when throwing the exception? (Choose two.)


9) The Java Persistence API defines the Query interface. Which two statements about the Query.executeUpdate method are true? (Choose two.)


10) The Java Persistence entity LineItem defines a composite primary key that is defined by the two columns ORDERID and LINEITEMID in the database. Which two are true? (Choose two.)
Home | Register for Job Updates | Contact Us