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

    A developer is creating a long-running Java Persistence reporting application that accesses a set of related entities. The application is NOT expected to add, change, or remove records in the database but the data can be changed by another application running on the same database. Which option will guarantee that the report does NOT contain stale data?

    A. CalltheEntityManagerflush API before preparing the report.
    B. CalltheEntityManager createOueryAPIbeforepreparingthe report.
    C. Call the EntityManager clearAPIbefore accessing thefieldsor properties of the entities used in the report.
    D. CalltheEntityManager refresh on each parent entity that is added to the report, and specify cascade=REFRESH onallcorresponding relationships.

  • Question 192:

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

  • Question 193:

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

  • Question 194:

    FooBean is an EJB 3.0 session bean that can make valid use of UserTransaction. Which is guaranteed to work in an EJB container for FooBean to obtain the UserTransaclion object?

    A. Invoke a method on a SessionContext that returns a UserTransaction object.
    B. Perform JNDI lookup with name "java:/UserTransaction" on an InitialContext.
    C. Perform JNDI lookup with the name "jdbc/UserTransaction" on an InitialContext.
    D. Use the @TransactionManagement annotation to inject an instance variable of type UserTransaction in a bean class.

  • Question 195:

    A developer is working on a user registration application using EJB 3.0. A business method registerUser in stateless session bean RegistrationBean performs the user registration. The registerUser method executes in a transaction context started by the client. If some invalid user data causes the registration to fail, the client invokes registerUser again with corrected data using the same transaction. Which design can meet this requirement?

    A. Have registerUser method call EJBContext.setRollbackOnlyOmethodafter registration fails.
    B. Have registerUser method throw javax.ejb.EJBTransactionRequiredExceptionafterregistration fails.
    C. HaveregisterUser method throw EJBException without marking the transaction for rollback, after registration fails.
    D. Create an application exception withtherollbackattributeset to falseandhave registerUser method throwit afterregistration fails.

  • Question 196:

    According to the Java Persistence API, a managed entity instance X becomes removed by invoking the remove method on it or when it is a target of a cascaded remove operation. Which statement is true?

    A. After an entity has been removed its state will be restored to the Java defaults.
    B. If a detached entity Y references Xthe HlegalStateException will be thrown.
    C. If X is a new entity the remove operation is cascaded to entities referenced by X.
    D. A removed entity X will be guaranteed to be removed from the database when the remove method returns.

  • Question 197:

    Which must result in the destruction of a stateful session bean?

    A. A client calls an @Remove method and the method returns successfully.
    B. The server in which the stateful session bean was created is restarted.
    C. The stateful session bean participates in a transaction that is rolled back.
    D. The stateful session bean is chosen as a last recently used (LRU) victim for passivation.

  • Question 198:

    A developer is working on a user registration application using EJB 3.0. A business method registerUser in stateless session bean RegistrationBean performs the user registration. The registerUser method executes in a transaction context started by the client. If some invalid user data causes the registration to fail, the client invokes registerUser again with corrected data using the same transaction. Which design can meet this requirement?

    A. Have registerUser method call EJBContext.setRollbackOnlyOmethodafter registration fails.
    B. Have registerUser method throw javax.ejb.EJBTransactionRequiredExceptionafterregistration fails.
    C. HaveregisterUser method throw EJBException without marking the transaction for rollback, after registration fails.
    D. Create an application exception withtherollbackattributeset to falseandhave registerUser method throwit afterregistration fails.

  • Question 199:

    A developer writes an enterprise application and packages it into an enterprise archive (EAR). The application contains one persistence unit with unit name "FooPU". The application also contains an ejb-jar with one stateless session bean. Which code, when added to the stateless session bean class, injects a container-managed persistence context at runtime?

    A. @PersistenceContext EntityManager em;
    B. @Resource(unitName="FooPU") EntityManager em;
    C. @PersistenceUnit(unitName="FooPU") EntityManager em;
    D. @PersistenceContext(unitName="persistence/FooPU") EntityManager em;

  • Question 200:

    A Java EE 5 Application server has four different security realms for user management. One of the security realms is custom made. This realm supports only individual user entries, no grouping of users, and is used by the application. Which two statements are true? (Choose two.)

    A. EJB developers cannot use the isCallerlnRole method.
    B. The annotation @RunAs("AAA")can still be used for this application.
    C. Allsecurity roles needarole-linkentryinthedeployment descriptor.
    D. All security roles can be mapped successfully to individual users in the realm.

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.