Oracle Java EE 6 Java Persistence API Developer Certified Expert (1Z0-898) Free Practice Test
Question 1
It a Persistence application locks entity x with a pessimistic lock, which statement is true?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
Persistence application locks entity x with a LockModeType. PESSIMISTIC_READ lock type, which statement is true?
Correct Answer: D
Question 3
A developer is creating an entity which is mapped to a table that has a primary key constraint defined on two character columns and would like to use mapping defaults as much as possible to simplify the code.
Which two mapping options can be chosen? (Choose two.)
Which two mapping options can be chosen? (Choose two.)
Correct Answer: D,E
Question 4
A stateless session bean's business method invokes EJBContext.setRollBackOnly and receives an IllegalStateException.
Under which of these conditions could this be possible?
Under which of these conditions could this be possible?
Correct Answer: B
Question 5
Which one of the following queries selects the customer whose order has the highest total price?
Correct Answer: A
Question 6
A developer has created a deep entity class hierarchy with many polymorphic relationships between entitles. Which inheritance strategy, as defined by the inheritanceType enumerated type, will be most performed in this scenario?
Correct Answer: A
Question 7
A developer has created an application managed entity manager. Which statement is correct?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).