Free Oracle 1Z0-860 Exam Questions (page: 15)

15. String text = tm.getText0;
16. System, out. print("2 ");
17. } catch (JMSException e) {
18. throw new java. rmi. RemoteExceptionQ; 19.}
20.}
When this bean class handles a message, which is correct?

A. After a messagedelivery theresultis1.
B. Aftera message delivery the resultis2.
C. Aftera message delivery the result is12.
D. Afteramessage delivery an exception isthrown.
E. After a message delivery the resultisunpredictable.
F. This isNOTanEJB3.0 compliant bean.
Answer(s): F

QUESTION: 39
Which statement is true about the primary key of a Java Persistence entity?

A. The primary key cannot be overriden by a mapping descriptor.
B. The location of the primary key defines the topmost entity class in the hierarchy.
C. If property-based access is used, the properties of the primary key class must be public or
protected.
D. At least part of a primary key must be defined in the class that is the topmost class of an
entity which is defined by a hierarchy of classes.
Answer(s): C
QUESTION: 40
A session bean calls the setRol backOnly method on the EJBContext interface within a business
method with an active transaction. Which two are correct? (Choose two.)

A. The transaction timeout is immediately disabled.
B. The container wil ensure that the transaction wil never commit.
C. The bean must have started the current transaction for this to be legal.
D. The bean must have bean-managed transaction demarcation for this to be legal.
E. Thebean must have container-managed transaction demarcation for this to be legal.
Answer(s): B, E
QUESTION: 41
Which statement about entity manager is true?

A. A container-managed entity manager must be a JTA entity manager.
B. An entity manager injected into session beans can use either JTA or resource-local
transaction control.
C. An entity manager created by calling the EntityManagerFactory.createEntityManager method
always uses JTA transaction control.


16

Viewing page 15 of 108



Post your Comments and Discuss Oracle 1Z0-860 exam prep with other Community members:

1Z0-860 Exam Discussions & Posts