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

Which Java Persistence query uses the aggregate function correctly, assuming that chairs field
is
of type int?

A. SELECT ANY(r. chairs) FROM Room r
B. SELECT NEW Integer(MAX(r. chairs)) FROM Room r
C. SELECT r FROM Room r WHERE r.chairs > AVG(r.chairs)
D. SELECT c FROM Chair c WHERE LOCATE (c.type, lazyboy) > -1
Answer(s): B
QUESTION: 51
A session bean's business method throws an exception during execution.
Which two are responsibilities of the Bean Provider when throwing the exception? (Choose
two.)

A. For application exceptions, ensure that if the current transaction commits there will be no loss
of data integrity.
B. For application exceptions, ensurethatthe current transaction wil commit.
C. For system errors, when the client is remote, throw a java.rmi.RemoteException that wraps
the original exception.
D. For checked exceptions from which the bean cannot recover, throw an EJBException that
wraps the original exception.
Answer(s): A, D
QUESTION: 52
A developer creates the following session bean:
10.?Stateless
11. @RolesAl owed("SECRET")
12. public class MyBean implements Mylnterface {
13. public void methodAOJ}
14. @PermitAII
15. public void methodB0 {}
16. @DenyAII
17. public void methodC0 {}
18. } No deployment descriptor is supplied.
Which two statements are true? (Choose two.)

A. Auserin the role "SECRET" will be able to accessallof the methods.
B. A user inthe role"FOO" wil be able to accessmethodAandmethodB.
C. A user withoutanyrolewil beable to accessmethodBbut NOTmethodA.
D. A user in the role "SECRET"wil be able to accessmethodA andmethodB.
E. A userintherole "SYSADM" wil be abletoaccessmethodA, methodB, and methodC.
Answer(s): C, D
QUESTION: 53


20

Viewing page 19 of 108



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

1Z0-860 Exam Discussions & Posts