we provide Downloadable Oracle 1Z0-898 practice exam which are the best for clearing 1Z0-898 test, and to get certified by Oracle Java Platform, Enterprise Edition 6 Java Persistence API Developer Certified Expert Exam. The 1Z0-898 Questions & Answers covers all the knowledge points of the real 1Z0-898 exam. Crack your Oracle 1Z0-898 Exam with latest dumps, guaranteed!


♥♥ 2021 NEW RECOMMEND ♥♥

Free VCE & PDF File for Oracle 1Z0-898 Real Exam (Full Version!)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 1Z0-898 Exam Dumps (PDF & VCE):
Available on: http://www.surepassexam.com/1Z0-898-exam-dumps.html

Q31. A developer has created an application managed entity manager. Which statement is correct? 

A. A new persistence context begins when the entity manager is created. 

B. A new persistence context begins when a new JTA transaction begins. 

C. A new persistence context begins when the entity manager is invoked in the context o\ transaction. 

D. A new persistence context begins when the entity manager is invoked in the context of a resource-local transaction. 

Answer: B 


Q32. A session bean business method invokes UserTransaction.setRollbackonly and receives an IllegalStateException. 

Under which circumstance can this happen? 

A. The bean is using bean-managed transactions regardless of whether there is an active transaction. 

B. There is no circustance that would cause setRollbackOnly to throw an IllegalStateException. 

C. The bean is using bean managed transaction demarcation, and uaerTransaccion.begin has been invoked. 

D. The setRollbackOnly method is invoked within a bean-managed transaction, and userTransaction.commit has NOT been invoked. 

Answer: C 


Q33. An application that uses pessimistic locking calls an updateData method that results in a LockTimeoutException being thrown. What three statements are correct? (Choose three) 

A. The current transaction continues. 

B. The current statement continues. 

C. The current transaction is rolled back. 

D. The current statement is rolled back. 

E. The LockTimeoutException can NOT be caught. 

F. The LockTimeoutException can be caught, and the updateData method retried. 

Answer: ADF 


Q34. Given the following entity classes: 

@Entity 

@cacheable (true) 

Public class A { . . . } @Entity 

@cacheable (false) 

Public class B { . . .} 

@Entity 

Public class C { . . . } 

If the shared-cache-mode element of persistence.xml is set to ENABLE _SERVICE, which entities are cached when using a persistence provider that supports caching? 

A. A only 

B. A and B 

C. A and C 

D. A, B, and C 

Answer: A 


Q35. A developer wants to create a Java Persistence query that will include a subquery. 

Which three are true? (Choose three.) 

A. Subqueries can be used in a FROM clause. 

B. Subqueries can be used in a WHERE clause. 

C. The ANY expression can be used only with a subquery. 

D. The EXISTS expression can be used only with a subquery. 

E. The MEMBER expression can be used only with a subquery. 

Answer: BCD 


Q36. The embeddable class ContractInformation is used in an element collection of the Employee entity. 

@Entity 

Public class Employee { 

@Id int empId; 

@ElementaryCollection Set <ContractInformation> info; 

. . . 

} 

Assume that the phone class is an entity and that address is an embedded class. 

Which two of the code segments below can be used to model the state of ContractInformation? (Choose two) 

A. @OneToMany Set <phone> phones; 

B. @Embeddable Address address; 

C. @ManyToOne phone phone; 

D. @ElementaryCollection <Phone> phones; 

E. @OneToOne Address address; 

Answer: AB 


Q37. Which statement is true about the @OrderColumn annotation? 

A. If mime is not specified, it defaults to the foreign key column. 

B. The OrderColumn annotation may be specified only on a relationship. 

C. The OrderColumn annotation is always specified on the owning side of a relationship. 

D. The order column is not visible as part of the state of the entity. 

Answer: D