Free 1Z0-860 Braindumps

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
11.?Entity public class X{
12. @ld int id;
13. Y y;
A public class Y with NO Java Persistence annotations is defined in the same package.
Which statement is correct about these classes if NO other annotations and mapping
descriptors are provided?

A. Class Y must be serializable.
B. ClassYmust be marked as an entity.
C. The entity X is notdefinedcorrectly.The field y must be marked as @Lob.
D. ClassY must be accessedbyapersistenceapplication throughapublicinterface.
Answer(s): A
A developer creates a stateless session bean. This session bean needs data from a remote
system. Reading this data takes a long time. Assume that the data wil NOT change during the
lifetime of the bean and that the information to connect to the remote system is defined in JNDI.
Which statement describes how to manage the data correctly?

A. Readthe datain the bean's constructor.
B. The datacan only bereadinthebean's business methods.
C. Read thedatain a method which is annotated with@PrePassivate.
D. Read the data in a method which is annotated with @Post Activate.
E. Readthedata ina methodwhich is annotated with (5)PostConstruct.
Answer(s): E
An enterprise bean has security permissions set up using declarative security features. Under
which two conditions can a client be guaranteed to have permission to invoke a business
method on the enterprise bean? (Choose two.)

A. The Application Assembler has marked the enterprise bean methodasunchecked.
B. The client's principalhas beenassigned a securityrolewithpermissionto invokethe method.
C. The Application Assembler has set the security-identity deployment descriptor to run-as.
D. TheApplicationAssemblerhas mapped all security role references using the role-link element.
Answer(s): A, B


Get The Premium Version
 Test Questions PDF from

 Test Questions PDF from