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) The syntax of the ORDER BY clause is defined in the Java Persistence API as: orderby_clause ::=ORDER BY orderby_item {, orderby_item}*Which statement is correct about the use of ORDER BY clauses?


2) Which statement is true about both stateful session beans and stateless session beans?


3) A developer creates a stateless session bean, EmployeeServiceBean,and itsinterface,EmployeeService. The session bean uses two annotated entity classes, Employee.class and Department.class. Which two packaging options can the developer use when creating a deployable EAR? The proposed directory structure is listed for each option. (Choose two.)


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


5) Which two class types must be implicitly or explicitly denoted in the persistence.xml descriptor as managed persistence classes to be included within a persistence unit? (Choose two.)


6) Which four are defined in the EJB specification as a standard EJB role?(Choose four.)


7) Given: 11. @PersistenceContext EntityManager em; 12. public boolean test(Order o) { 13. boolean b = false; 14. o = em.merge(o); 15 em.remove(o); 16. o = em.merge(o); 17. b = em.contains(o); 18. return b; 19. } Which statement is correct?


8) A developer wants to achieve the following two behaviors for an EJB 3.0 session bean: (1) If the client calls a business method with a transaction context, the container will invoke the enterprise bean's method in the client's transaction context. (2) If the client calls a business method without a transaction context, the container will throw the javax.ejb.EJBTransactionRequiredException. Which transaction attribute should be used?


9) Given: 11. @PersistenceContext EntityManager em; 12. public boolean test(Order o) { 13. boolean b = false; 14. o = em.merge(o); 15 em.remove(o); 16. o = em.merge(o); 17. b = em.contains(o); 18. return b; 19. } Which statement is correct?


10) Which statement is true about the Timer service in an EJB 3.0 stateless session bean?
Home | Register for Job Updates | Contact Us