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

    Your application uses the Java Persistence API to access a database. This application must reject adding an instance to the database if it does NOT pass validation tests for values of two persistence properties. The database contains some data that will NOT pass such validation. Only the new records must be validated. Which option will achieve this behavior?

    A. Add validation logic tothesetter methods for each property.
    B. AddthePrePersist callbackmethodwithallofthevalidation logic.
    C. Addthe PostPersist callback methodwithall ofthevalidation logic.
    D. AddPrePersist and PreUpdate callback methods with allofthe validation logic.

  • Question 82:

    FooBean and BarBean are both EJB 3.0 stateless session beans with container-managed transaction demarcation. All business methods in the two beans have transaction attribute REQUIRED. The business method foo in FooBean invokes the business method bar in BarBean. Given :

    10.

    public class BarBean {

    11.

    public void bar0{

    12.

    throw new EJBException("unexpected error..."); 13.}

    Which statement is true about the result of this method invocation assuming execution reaches Line 12?

    A. Thecontainer mightroll back the transaction.
    B. TheBarBean bean instance is in the ready stateforthe next invocation.
    C. FooBean.foomethod receives javax.ejb.EJBTransactionRolledbackException.
    D. FooBean.foo method receives javax.transaction.InvalidTransactionException.

  • Question 83:

    Which statement is true about the EJB 3.0 stateful session bean?

    A. Its conversational state is retained across method invocations and transactions.
    B. Its conversational state is lost after passivation unless the bean class saves it to a database.
    C. Its interceptors and their instance field values are NOT part of the conversational state of the bean.
    D. Its conversational state is retained across method invocations but NOT across transaction boundaries.

  • Question 84:

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

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

    Which two statements are true about EJB 3.0 session bean transaction management? (Choose two.)

    A. All session beans in the same ejb-jar must have the same transaction demarcation type.
    B. All session beans in the same enterprise application archive must have the same transaction demarcation type.
    C. Session beans with bean-managed transaction demarcation cannot participate in a two-phase commit procedure.
    D. Session beans with bean-managed transaction demarcation can use transactional resources managed by the container.
    E. Session beans that invoke javax. persistence. EntityManager can use either containermanaged transaction demarcation or bean-managed transaction demarcation.

  • Question 87:

    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

  • Question 88:

    A developer wants to create a Java Persistence query that returns valid U.S. phone numbers (formatted as "123-456-7890" or "800-RUN-EJB3") from a collection of differently formatted international phone numbers. The developer needs only those numbers that begin with 303. Which WHERE clause is correct?

    A. WHEREaddr. phone LIKE 303J
    B. WHERE addr. phone LIKE 303%'
    C. WHEREaddr. phone LIKE303-_-_'
    D. WHEREaddr.phone LIKE 303-%-%'
    E. WHEREaddr. phoneLIKE 303- - '
    F. WHERE addr. phone LIKE 303-%%%-%%%%'

  • Question 89:

    A developer is implementing a message-listener method of an EJB 3.0 message-driven bean. The developer wants to make sure that the message receipt is immediately rolled back in case the message listener method is aborted with a runtime exception. Which option can the developer use?

    A. Use Container-Managed Transactions with transaction attribute REQUIRED.
    B. Use Container-Managed Transactions with transaction attribute NOT_SUPPORTED.
    C. Use Bean-Managed Transactions and the JMS API for message acknowledgement.
    D. Use Bean-Managed Transactions and write a try-catch-finally block that calls UserTransaction. rollback in case of a RuntimeException.

  • Question 90:

    A Java Persistence application has been developed for a Java SE environment and the persistence, xml file looks like this:

    transaction-type=RESOURCE_LOCAL>

    order-mappings.xml com.acme.Order

    com.acme.Customer

    com.acme.ltem

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.