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

    The Java Persistence API defines a notion of propagation of a persistence context. Which statement is correct?

    A. Persistence context propagation is NOT supported for message-driven beans.
    B. Persistence context propagation is supported for any type of an entity manager.
    C. Persistence context propagation avoids the need for the application to pass references of entity manager instances.
    D. Persistence context propagation results in cloning of all managed instances for use by another instance of an entity manager.

  • Question 32:

    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.
    D. An entity manager obtained through resource injection in a stateful session bean can use a resource-local EntityTransaction for transaction control

  • Question 33:

    Which statement about the combination of mapping defaults, annotations, and XML descriptors is correct?

    A. All mapping annotations must always be processed by the persistence provider.
    B. Some annotations, like the @Entity annotation, must always be processed by the persistence provider.
    C. The mapping information for an entity class specified by annotations and in XML descriptors must be distinct.
    D. If multiple entity listeners are defined, the order in which they are invoked can be defined or overwritten in the XML descriptor.

  • Question 34:

    A developer writes client code that runs in a Java EE container and accesses an EJB 3.0 stateful session bean. Which three statements are correct? (Choose three.)

    A. The client can obtain a reference to the bean's business interface through JNDI lookups.
    B. The client can obtain a reference to the bean's business interface through dependency injection.
    C. If the client calls a business method after the bean instance has been removed an exception will occur.
    D. After obtaining a reference to the bean's business interface, the client must call the create method before it may call business methods.
    E. After the bean instance has been passivated, the client needs to re-obtain a reference to the bean's business interface to activate the bean instance.

  • Question 35:

    A Reader entity has a one-to-many, bidirectional relationship with a Book entity. Two Reader entities are persisted, each having two Book entities associated with them. For example, readeM has booka and bookb, while reader2 has bookc

    and bookd.

    Which query returns a Collection of fewer than four elements?

    A. SELECT b.reader FROM Book b
    B. SELECT r FROM BookbINNER JOINb.readerr
    C. SELECTrFROM Reader r INNER JOIN r.booksb
    D. SELECTrfrom BookbLEFT JOIN b.readerr LEFTJOINFETCHr.books

  • Question 36:

    Given the following stateless session bean implementation classes:

    10.

    @TransactionAttributefJransactionAttributeType. MANDATORY)

    11.

    public class MySuperj

    12.

    public void methodAfJO

    13.

    public void methodBOJ}

    14.}

    10.©Stateless

    11.

    public class MyBean extends MySuper implements Mylntj

    12.

    public void methodAOJ}

    13.

    14.

    @TransactionAttributeO"ransactionAttributeType.REQUIRES_NEW)

    15.

    public void methodC0 {}

    16.}

    10.

    @RemoteO

    11.

    public interface Mylntj

    12.

    public void methodAO;

    13.

    public void methodB0;

    14.

    public void methodC0;

    15.}

    Assuming no other transaction-related metadata, what are the transaction attributes of methodA, methods, and methodC respectively?

    A. MANDATORY, MANDATORY, and MANDATORY
    B. REQUIRED, MANDATORY, and REQUIRES_NEW
    C. MANDATORY, MANDATORY, and REQUIRES_NEW
    D. REQUIRED, REQUIRES NEW, and REQUIRES NEW

  • Question 37:

    Which statement about an entity instance lifecycle is correct?

    A. A new entity instance is an instance with a fully populated state.
    B. A detached entity instance is an instance with no persistent identity.
    C. A removed entity instance is NOT associated with a persistence context.
    D. A managed entity instance is the instance associated with a persistence context.

  • Question 38:

    A developer wants to release resources within a stateless session bean class. The cleanup method should be executed by the container before an instance of the class is removed. The deployment descriptor is NOT used. Which three statements are correct? (Choose three.)

    A. The cleanup method may declare checked exceptions.
    B. The cleanupmethodmusthave noarguments andreturn void.
    C. The cleanup method isexecuted inan unspecifiedtransactionand security context.
    D. The developer should mark the cleanup methodwiththe @PreDestroy annotation.
    E. The developershouldmark thecleanupmethodwiththe @PostDestroy annotation.
    F. Thecleanup method is executed inthetransactionandsecurity context ofthelast business method invocation.

  • Question 39:

    A developer writes a stateless session bean FooBean with one remote business interface FooRemote containing one business method foo. Method foo takes a single parameter of application-defined type MyData.

    11.

    public class MyData implements Java. io.Serializablej

    12.

    int a;

    13.}

    Method foo is implemented within the FooBean class as:

    11.

    public void foo(MyData data) {

    12.

    data.a = 2;

    13.}

    Another session bean within the same application has a reference to FooRemote in variable fooRef and calls method foo with the following code:

    11.

    MyData data = new MyDatafJ;

    12.

    data.a = 1;

    13.

    fooRef.foo(data);

    14.

    System, out. println(data. a);

    What is the value of data, a when control reaches Line 14 of the client ?

    B. 1
    C. 2
    D. either1or 2

  • Question 40:

    The execution of the find method in the following code throws an exception:

    11.

    em.find(Customer.class, custld);

    12.

    //Where em is a reference to a extended scoped entity manager.

    Which scenario can cause the exception?

    A. Thefindmethod was called without a transaction.
    B. Theentity corresponding to therequestedprimary key has been removed.
    C. The entity corresponding to therequestedprimarykeyhas beendetached.
    D. The data type of custld is NOT a valid type fortheCustomer entity primary key.

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.