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
    :Mar 31, 2025

Oracle Oracle Certifications 1Z0-860 Questions & Answers

  • Question 211:

    The Java Persistent API defines certain rules for persistent entities. These rules are required by the persistent provider to manage entities at runtime. Which statement is correct, assuming NO mapping descriptor is used?

    A. Entitiesmust extenda persistent base class.

    B. Entities must implement the interface PersistentEntityto bemanaged bythepersistent provider.

    C. Afield withoutatransient modifier mustbeannotated as ©Persistent tobe stored in the database.

    D. A field without a transient modifier must be annotated as ©Transient to NOT be stored in the database.

  • Question 212:

    Which statement is correct about the Java Persistence API support for the SQL queries?

    A. SQL queries are NOT allowed to use parameters.

    B. The result of an SQL query is not limited to entities.

    C. Only SELECT SQL queries are required to be supported.

    D. SQL queries are expected to be portable across databases.

  • Question 213:

    Which two are restrictions of beans with bean-managed transactions? (Choose two.)

    A. The NONSUPPORTED transaction attribute must be chosen.

    B. Clients calling with a transactional context are prohibited and will result in an exception.

    C. A stateful session bean must commit a started transaction before a business method returns.

    D. A bean that starts a transaction must complete the transaction before it starts a new transaction.

    E. A message-driven bean instance must commit a transaction before the onMessage method returns.

  • Question 214:

    Given two entities with a many-to-many bidirectional association between them:

    11.

    @Entity public class Employee!

    12.

    Collection projects;

    13.

    // more code here

    14.}

    and

    11.©Entity public class Project!

    12.

    Set emps;

    13.

    // more code here

    14.}

    What set of annotations correctly defines the association?

    A. @ManyToMany on the projects field, @ManyToMany(mappedBy="projects") on the emps field

    B. @ManyToMany(mappedBy="emps") on the projects field, @ManyToMany on the emps field

    C. @ManyToMany(targetEntity=Project.class) on the projects field, @ManyToMany(mappedBy="projects") on the emps field

    D. @ManyToMany(targetEntity=Project.class) on the projects field, @ManyToMany on the emps field

  • Question 215:

    A developer is implementing an EJB 3.0 message-driven bean that will be associated with a JMS topic. The bean must NOT miss any messages published to the topic, even if the EJB server is down for some time. Which is correct?

    A. The developershouldset the activation config properly subscriptionDurabilitytovalueDurable.

    B. The developer should set the activation config property subscriptionDurability to value NonDurable.

    C. Clients must take care of resending messages to the topic in case of missing message acknowledgements.

    D. The developer does NOT need to do anything, because as long as the EJB server is down no client can publish messages to the topic.

  • Question 216:

    Which two can be specified by both the Bean Provider and the Application Assembler? (Choose two.)

    A. security roles

    B. enterprise bean type

    C. transaction attributes

    D. session bean's state-management type

    E. enterprise bean's remote home interface

    F. enterprise bean's local business interface

  • Question 217:

    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

  • Question 218:

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

    A business method of a stateless session bean with a transaction attribute REQUIRED executes a Java Persistence query on a container-managed persistence context. Under which two conditions can the developer expect the persistence provider to ensure that all changes made to the persistence context in the transaction are visible to the processing of the query? (Choose two.)

    A. Theflushmode is NOT explicitly set.

    B. Theflushmodeon the Query object is set toCOMMIT.

    C. The refresh method on the EntityManager is called.

    D. The flush mode on the persistence context issetto AUTO but is NOT specified for the Query object.

  • Question 220:

    Given the following client-side code that makes use of the session bean Foo:

    10.

    @EJB Foo beanl;

    11.

    @EJB Foo bean2; //more code here

    20.

    booleantestl = beanl.equals(beanl);

    21.

    booleantest2 = beanl.equals(bean2);

    Which two statements are true? (Choose two)

    A. A. IfFoo is stateful, testl is true, and test2 is true,

    B. If Foo is stateful, testl is true, and test2 is false,

    C. If Foo is stateless, testl is true, and test2 is true.

    D. If Foo is stateful, testl is false, and test2 is false,

    E. If Foo is stateless, testl is true, and test2 is false.

    F. If Foo is stateless, testl is false, and test2 is false

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.