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
    :May 25, 2026

Oracle 1Z0-860 Online Questions & Answers

  • Question 111:

    Consider the following classes: 11.©Entity Auction {

    12.

    @ld int id;

    13.

    @OneToOne Item item;

    14.}

    11.©Entity Itemj

    12.

    @ld int id;

    13.

    @OneToOne (mappedBy="item") Auction auction;

    14.

    }

    Given that the Auction entity maps to an AUCTION database table and the Item entity maps to an ITEM database table, which statement is correct assuming there is NO mapping descriptor?

    A. The relationship is mapped to a foreign key in the ITEMtable.
    B. Therelationship is mapped usingajointableAUCTIONJTEM.
    C. The relationship is mappedtoaforeignkeyinthe AUCTIONtable.
    D. The relationshipis mapped to foreignkeysinbothITEMandAUCTION tables.

  • Question 112:

    Which three roles will typically edit an ejb-jar? (Choose three.)

    A. Deployer
    B. EJBServer Provider
    C. PersistenceProvider
    D. System Administrator
    E. ApplicationAssembler
    F. EnterpriseBeanProvider

  • Question 113:

    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 114:

    A Java Persistence application uses entities mapped to tables from two datasources in the same transaction. What statement is correct?

    A. This is NOT possible.
    B. The entities mustbepackaged into two persistence units.
    C. The entitiescanbe packaged intoa singlepersistence unit
    D. Theentities must be packaged usingtwo differentpersistence.xml files.

  • Question 115:

    A session bean calls the setRollbackOnly 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 will ensure that the transaction will 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.

  • Question 116:

    A User entity is in a one-to-many relationship with a Book entity. A developer writes a query to delete users that have a first name of Fred1or 'Ginger', and writes the following Java Persistence query language statement: DELETE FROM User u WHERE u.name IN (Fred', "Ginger) If the query fails with a PersistenceException, what can be the cause?

    A. The syntax of the query is NOT correct.
    B. Thequerycauses a foreign key integrity constrainttobe violated.
    C. The database doesNOThave any userswith thenameFred'or 'Ginger'.
    D. Theentities corresponding to the userswiththe nameFred'or'Ginger' arealreadybeing managedbythe persistencecontext.

  • Question 117:

    Which statement is true about the use of a persist operation in a transaction?

    A. If a user persists a detached object it always becomes managed.
    B. The persist operation on an entity always cascades to its related entities.
    C. If a user persists a new entity with an existing primary key the transaction will fail.
    D. If a user persists a managed entity an exception may be thrown by the persist operation.

  • Question 118:

    A Java Persistence application uses the EntityManager.flush method to synchronize the current persistence context with the database. Which two statements are correct? (Choose two.)

    A. The flush method might cause the persist operation to be cascaded to related entities.
    B. Extensive use of the flush method decreases the performance of a Java Persistence application.
    C. The flush method should be used to synchronize the current persistence context with modifications made in other transactions.
    D. The flush method should be used to publish changes done in the current persistence context to other transactions before actual transaction commit.

  • Question 119:

    Given :

    public class MyException extends Exception {}

    The business interface Foo declares a method work0: I. public void work0 throws MyException;

    The bean class FooBean contains the following:

    10.©Stateless

    II. @Remote(Foo.class)

    12.

    public class FooBean {

    13.

    public void workQ throws MyException {

    14.

    //do some work not shown here

    15.

    throw new MyException0;

    16.}

    Assuming there is no deployment descriptor, which statement is true when the workQ method is invoked by a client with an existing transaction context and execution reaches Line 15?

    A. The container does notroll back thetransaction.
    B. The clientreceives javax.ejb.EJBTransactionRequiredException.
    C. The clientreceivesjavax.ejb.EJBTransactionRolledbackException.
    D. Thecontainer marks the transactionforrollback by calling the EJBContext.setRollbackOnly method.

  • Question 120:

    A developer writes a stateless session bean with one local business interface and with containermanaged transactions. All business methods have transaction attribute REQUIRED. The bean has an injected field sessionCtx of the type SessionContext. Which two operations are allowed in a business method of the bean? (Choose two.)

    A. sessionCtx. getEJBObject
    B. sessionCtx.setRollbackOnly
    C. sessionCtx. getMessageContext
    D. sessionCtx. getBusinessObject
    E. sessionCtx. getEJBLocalObject

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.