OCPJBCD / SCBCD 5 Mock Exams: Mock Exam 1 Mock Exam 2 Mock Exam 3 Mock Exam 4 The Syllabus for the OCPJBCD / SCBCD 5 exam is : Section 1: EJB 3.0 Overview Identify the uses, benefits, and characteristics of Enterprise JavaBeans technology, for version 3.0 of the EJB specification. Identify the APIs that …
OCPJBCD
OCPJBCD Mock Exam – 4
1 . Which of the following statements are true about the Entity class? Entity class must not have no-arg constructor Entity class must be declared as top level class Interface cannot be Entity Enum can be declared as Entity 2 . Which of the following are correct? Choose the one below: 1 2 3 4 …
OCPJBCD Mock Exam – 3
1 . A stateless session bean must commit a transaction before a business method? True False 2 . A message-driven bean must commit a transaction before a business method? True False 3 . A stateful session bean must commit a transaction before a business method? True False 4 . By default, What is the value …
OCPJBCD Mock Exam – 2
1 . Can we use the annotation @PrePassivate for more than one method in a bean? Yes No 2 . What should be the return type of the method using @PrePassivate? Object void String boolean 3 . Which of the following are correct statements about @PrePassivate? Method’s return value must not be void Method cannot …
OCPJBCD Mock Exam -1
1 . Application Exception myException can automatically mark transaction for roll back? ApplicationException is applied to the myException class <exception-class>myException</exception-class> is used inside <application-exception> element in deployment descriptor Constructor of myException class calls EJBContext.setRollbackOnly() ApplicationException is applied to myException class, and rollback subelement of application-exception is specified as true 2 . If message driven bean …