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

    A User entity is in a one-to-many relationship with a Book entity. Assume that a developer has a function fetchBook(String title) that fetches a Book entity with the given title title. Also assume that the developer has an entity manager em. Which query can be used to return the user that holds the book titled "Java"?

    A. em.createQueryfSELECT u FROM User u where :great IN
    B. books.title").setParameter("great","Java")
    C. em.createQuery("SELECT u FROM User u where :great IN
    D. books"). setParameter("great",fetchBook("Java"))
    E. em.createQuery("SELECT u FROM User u where :great MEMBER OF
    F. books.title"). setParameter("great" ."Java")
    G. em.createQuery("SELECT u FROM User u where :great MEMBER OF
    H. books"). setParameter("great",fetchBook("Java"))

  • Question 232:

    A Java Persistence application wants to use optimistic locking. Which statement that describes the functionality of optimistic locking is correct?

    A. The Version attribute of an entity using optimistic locking can be mapped to a secondary table.
    B. Optimistic locking can be used by Java Persistence applications to set optimistic locks on tables in the database.
    C. The Version attribute of an entity using optimistic locking is verified each time the instance is loaded from the database.
    D. Optimistic locking ensures that updates or deletes are consistent with the current state of the database and that intervening updates are not lost.

  • Question 233:

    A developer writes an interceptor class called Foolnterceptor containing the following Aroundlnvoke method:

    11.

    @Aroundlnvoke

    12.

    public Object intercept(lnvocationContext ctx) {

    13.

    return "intercepted";

    14.}

    Foolnterceptor is applied to a business method in a stateless session bean:

    11.

    @lnterceptors(Foolnterceptor.class)

    12.

    public String testzero(int i) {

    13.

    return (i == 0) ? "zero""not zero";

    14.

    }

    Which describes the result when a client invokes the testzero method with a value of 1?

    A. The intercept method is NEVER invoked.
    B. The clientreceivesareturnvalueof "zero".
    C. The client receivesa returnvalue of "not zero".
    D. The client receivesareturn value of "intercepted".

  • Question 234:

    A developer implements a system in which transfers of goods are monitored. Each transfer needs a unique ID for tracking purposes. The unique ID is generated by an existing system which is also used by other applications. For perfomance reasons, the transaction that gets the unique ID should be as short as possible. The scenario is implemented in four steps which are implemented in four business methods in a CMT session bean: LcheckGoods Checks goods in a database 2.getUniqueld Retrieve the unique ID 3.checkAmount Checks the amount in a non-transactional system 4.storeTransfer Stores the transfer in a database as part of the calling transaction. These methods are called by the addTransfer method of a second CMT session bean in the following order: checkGoods, getUniqueld, checkAmount, storeTransfer Assuming no other transaction-related metadata, which is the correct set of transaction attributes for the methods in the session beans?

    A. 0.addTransfer REQUIRED 1.LcheckGoods REQUIRED 2.getUniqueldREQUIRES_NEW 3. checkAmountsNOT_SUPPORTED 4. storeTransferMANDATOR Y
    B. 0.addTransferREQUIRED 1.LcheckGoods REQUIRED 2.getUniqueldREQUIRED 3.checkAmountsREQUIRED 4. storeTransferREQUIRED
    C. 0.addTransferREQUIRED 1.LcheckGoods REQUIRED 2.getUniqueldREQUIRES_NEW 3. checkAmountsNEVER 4. storeTransferMANDATOR Y
    D. 0.addTransferNOT_SUPPORTED 1.LcheckGoodsREQUIRED 2.getUniqueldREQUIRED 3. checkAmountsNOT_SUPPORTED 4.storeTransferMANDATOR Y

  • Question 235:

    A developer wants to implement a relationship between Company and Department entity classes. Every department belongs to one company, and one company has several departments. In this application it is essential to quickly determine which company a department belongs to and to also easily access all departments of a given company. Which two declarations provide a solution to these requirements? (Choose two.)

    A. In class Department @ManyToOne private Company company;
    B. In class Department @OneToMany private Company company;
    C. In class Department: @OneToMany(mappedBy="department") private Collection companies;
    D. In class Company: @ManyToOne(mappedBy="company") private Collection departments;
    E. In class Company: @OneToMany(mappedBy="company") private Collection departments;

  • Question 236:

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

    A developer's objective is to end the persistence context associated with an application- managed entity manager. Which statement is correct?

    A. Invoke the flush method of theentitymanager.
    B. Invoke the close method of the entity manager.
    C. Invokethe clear methodofthe entity manager.
    D. Invoke the remove method of the entity manager.

  • Question 238:

    A developer has obtained a container-managed entity manager with transaction scoped persistence context. Assume there is no persistence context associated with the entity manager. When does a new persistence context begins?

    A. whenaJTA transaction begins
    B. when the entity manager is created
    C. whenthe entitymanageris invoked in the scope of an active JTA transaction
    D. when theentitymanager is created inthe scopeof an active resource local transaction

  • Question 239:

    A developer wants to create a JMS message-driven bean that responds to javax.jms.TextMessage messages. Which two statements are true? (Choose two.)

    A. The developer must implement the ejbCreate method.
    B. The developer does NOT need to create a business interface for the bean.
    C. The developer must implement a method that declares javax.jms.TextMessage as an argument.
    D. The message-driven bean class must implement methods of the javax.jms.MessageListener interface.
    E. The message-driven bean class must implement methods of the javax. ejb. MessageDrivenBean interface.

  • Question 240:

    Which statement describes a component definition that is allowed by the EJB 3.0 specification?

    A. A stateful session bean that is a Web service endpoint.
    B. A stateful session bean that has one remote business interface and is a Web service endpoint.
    C. A message-driven bean that has one message listener interface and is a Web service endpoint.
    D. A stateless session bean that has three local business interfaces and is a Web service endpoint.

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.