1Z0-860 Exam Details

  • Exam Code
    :1Z0-860
  • Exam Name
    :Java Enterprise Edition 5 Business Component Developer Certified Professional
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :305 Q&As
  • Last Updated
    :Jul 15, 2026

Oracle 1Z0-860 Online Questions & Answers

  • Question 291:

    A Java EE 5 application contains a session bean which uses a security role USER. A group called people is defined in an LDAP server. Which two define appropriate EJB role responsibilities? (Choose two.)

    A. The deployer definesandconfigures the LDAP realm.
    B. The system administratordefines and configuresthe LDAPrealm.
    C. Thedeployermaps the application role USER totheLDAP group people.
    D. Thesystem administrator maps the application role USER totheLDAP group people.

  • Question 292:

    A developer wants to create a portable EJB 3.0 application that includes the following class definition for the Entity Account: 11.©Entity

    12.

    @Entityl_isteners(com. acme.AlertMonitor. class)

    13.

    public class Account {

    14.

    // more code here

    15.

    @PrePersist

    16.

    protected void validateCreate0 {/* more code here */} 17.} Which statement is correct?

    A. The validateCreate method may NOT throwruntimeexceptions.
    B. ThevalidateCreate method can invoke the EntityManager.flush operation.
    C. Methods oftheclass com.acme.AlertMonitor annotatedwithcallback annotationsmusttake an Object or Account instance astheonly argument.
    D. The above class definition is NOT correct. An entity cannot defineacallback methodlike PrePersistand use the EntityListeners annotationatthe same time.

  • Question 293:

    A developer creates a stateful session bean that is used by many concurrent clients. The clients are written by other development teams and it is assumed that these clients might not remove the bean when ending their session. The number of concurrent sessions will be greater than the defined bean cache size. The developer must consider that the state of the session bean can be influenced by either passivation or timeout. Which three actions should the developer take to make the bean behave correctly in passivation and timeout situations? (Choose three.)

    A. Release references to resources ina@Removeannotated method.
    B. Re-establish references to resources in an @lnit annotated method.
    C. Release references to resources ina@PreDestroy annotated method.
    D. Release references to resources in a @PrePassivate annotated method.
    E. Re-establish referencestoresources ina (©PostActivate annotatedmethod.

  • Question 294:

    A Java Persistence application uses a Version attribute to manage concurrent updates. Which is true?

    A. The Version attribute must have a public access type.
    B. The Version attribute is used by the persistence provider.
    C. A separate Version attribute must be specified for each class in the inheritance hierarchy.
    D. A separate Version column must be specified for each table mapped to the entity.

  • Question 295:

    A CMT session bean named MrBean contains a method storeStuff which is annotated as follows:

    22.

    @TransactionAttributeO"ransactionAttributeType.REQUIRES_NEW)

    23.

    public void storeStuffO {

    All other methods of this bean have no transaction annotations. Given the following part of an ejbjar.

    xml:

    23.

    24.

    25.

    MrBean

    26.

    *

    27.

    28.

    NotSupported

    29.

    Which statement is correct about the methods in MrBean?

    A. Allmethods of MrBean have transaction attribute REQUIRED.
    B. All methodsofMrBean have transactionattribute NONSUPPORTED.
    C. MethodstoreStuffhastransactionattributeREQUIRES_NEWandthe other methods have transaction attribute REQUIRED.
    D. Method storeStuff has transaction attribute NONSUPPORTED and the other methods have transaction attribute REQUIRED.
    E. Method storeStuff has transaction attribute REQUIRES NEWandthe other methodshavetransaction attribute NOT SUPPORTTED.

  • Question 296:

    A developer implements a session bean with a method doStuff which behaves differently depending on the caller's security role. Only users in security roles "ADMIN" and "USER" are allowed to call the method. Assume that there is no security-related metadata in the deployment descriptor. Which two, taken in combination, are appropriate to accomplish this? (Choose two.)

    A. Annotate method doStuff with @PermitAII.
    B. AnnotatemethoddoStuff with@RolesAllowed({"ADMIN","USER"})
    C. If EJBContext.getCallerPrincipal returns role "ADMIN", implement thebehaviorfor users in role ADMIN.
    D. If EJBContext.isCallerlnRole("ADMIN") returns true, implement the behavior defined for users in role "ADMIN".

  • Question 297:

    The Java Persistence API defines EntityTransaction interface. Which statement is correct?

    A. It is used to control transactions on JTA entity managers.
    B. It is used to control transactions on resource-local entity managers.
    C. All methods of this interface will throw HlegalStateException if a transaction is NOT active.
    D. Calling getTransaction method on a closed entity manager will throw an HlegalStateException.

  • Question 298:

    An enterprise developer has received ejb-jars from multiple Bean Providers and wants to combine them into a single ejb-jar as well as altering the method permissions on some of the beans without recompiling any of the code contained in the ejb-jar. Which is correct?

    A. Bean Provider is the only role that can perform this task.
    B. Deployeris the most appropriaterole toperform thistask.
    C. EitheraDeployer or System Administrator role may perform this task.
    D. This problem cannot be solved using an EJB 3.0-compliant approach.
    E. ApplicationAssembleris the mostappropriate roletoperform this task.

  • Question 299:

    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 will 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.

  • Question 300:

    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

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-860 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.