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

    Consider a deep inheritance hierarchy consisting of Java Persistence entity classes, non- entities, and mapped superclasses. Which statement is correct, assuming NO mapping descriptor is present?

    A. An entity class must NOT inherit from a non-entity class.
    B. An entity class must NOT be extended by a non-entity class.
    C. Only the root class in an inheritance hierarchy can be annotated wtith @MappedSuperclass.
    D. The primary key must either be defined in the topmost entity class of the inheritance hierarchy or it can be defined in a superclass if this class is annotated as @MappedSuperclass.

  • Question 42:

    A developer writes a stateless session bean FooBean and uses its deployment descriptor to declare a local ejb dependency on a stateful session bean in the same ejb-jar.

    barRef

    acme.Bar

    BarBean

    acme.FooBean bar

    Which environment annotation, when declared within the FooBean bean class, is equivalent to the ejb-local-ref shown above?

    A. @EJB(beanName="BarBean") private acme. Bar barRef;
    B. @EJB(name="bar", beanName="BarBean") private acme.BarbarRef;
    C. @EJB(name="barRef,beanName-'BarBean") privateacme.Bar bar;
    D. @EJB(name="ejb/barRef, beanName-'BarBean") private acme.Bar bar;

  • Question 43:

    Which two annotations can be applied at the class, method, and field levels? (Choose two.)

    A. @EJBB. @lnit
    B. ©Resource
    C. @RolesAllowed
    D. ©PostActivate

  • Question 44:

    OldBarBean is a stateless session bean written to the EJB 2.1 API with remote home interface. OldBarHome and remote component interface OldBar. FooBean is a stateless session bean written to the EJB 3.0 API. OldBarBean and FooBean are the only EJBs packaged in the ejb-jar. The FooBean portion of the ejb-jar. xml also declares an ejb-ref whose ejb-ref-name is ejb/oldBar. The ejb-ref is linked to OldBarBean. There are no other ejb dependencies defined. A business method foo in FooBean needs to access OldBarBean. Which is portable code to achieve this goal?

    A. ©Remote private OldBar oldBar;
    B. public void fooQ { try { InitialContext ic = new InitialContextO; Object obj = ic.lookup("ejb/oldBar"); OldBarHome OldBarHome = (OldBarHome) PortableRemoteObject.narrow(obj, OldBarHome.class); OldBar oldBar = oldBarHome.createO;
    C. @EJB private OldBarHome OldBarHome; public void fooQ { try { OldBar oldBar = oldBarHome.createQ;
    D. public void fooQ { try { InitialContext ic = new InitialContextO; OldBarHome OldBarHome = (OldBarHome) ic.lookup("ejb/oldBar"); OldBar oldBar = oldBarHome.createQ;

  • Question 45:

    FooBean and BarBean are both EJB 3.0 stateless session beans with container-managed transaction demarcation. All business methods in FooBean have transaction attribute REQUIRED, and all business methods in BarBean have

    transaction attribute REQUIRES_NEW. 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 RuntimeException("unexpected error..."); 13.}

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

    A. FooBean.foo method receives javax.ejb.EJBException.
    B. TheBarBean bean instance is in ready state for the next invocation.
    C. FooBean.foo methodreceivesjavax.ejb.EJBTransactionRolledbackException.
    D. FooBean.foo method receivestheoriginal RuntimeException thrown fromBarBean.bar method.

  • Question 46:

    An application wants to utilize side-effects of cascading entity-manager operations to related entities. Which statement is correct?

    A. The persist operation is always cascaded to related entities for one-to-one and one-to- many relationships
    B. To minimize the effect of the remove operation applied to an entity participating in a many- tomany relationship the remove operation should be cascaded to entities on both sides of the relationship.
    C. The persist operation applied to a new entity X is cascaded to entities referenced by X if the relationship from Xto these other entities is annotated with the cascade=PERSIST or cascade=ALL annotation element value.
    D. The remove operation applied to a removed entity X is cascaded to entities referenced by X if the relationship from Xto these other entities is annotated with the cascade=REMOVE or cascade=ALL annotation element value.

  • Question 47:

    Given this code snippet from a JMS message-driven bean class X:

    11.

    public XQ { System, out. print("1 "); }

    12.

    public void onMessagefMessage m) throws Java. rmi. RemoteException

    13.

    try {

    14.

    TextMessage tm = (TextMessage) m;

    15.

    String text = tm.getText0;

    16.

    System, out. print("2 ");

    17.

    } catch (JMSException e) {

    18.

    throw new java. rmi. RemoteExceptionQ;

    19.}

    20.}

    When this bean class handles a message, which is correct?

    A. After a messagedelivery theresultis1.
    B. Aftera message delivery the resultis2.
    C. Aftera message delivery the result is12.
    D. Afteramessage delivery an exception isthrown.
    E. After a message delivery the resultisunpredictable.
    F. This isNOTanEJB3.0 compliant bean.

  • Question 48:

    Which statement about the @MappedSuperclass annotation is correct?

    A. A class annotated with @MappedSuperclass must be abstract.
    B. Subclasses of entity classes cannot be annotated with @MappedSuperclass.
    C. A class annotated with @MappedSuperclass has no separate table defined for it.
    D. A class annotated with @MappedSuperclass can be the target of queries like any other entity class.

  • Question 49:

    The Java Persistence API defines the Query interface. Which two statements about the Query.executeUpdate method are true? (Choose two.)

    A. Itmust always be executed within a transaction.
    B. It throws a PersistenceException if no entities were updated.
    C. It throws an HlegalStateException if called on a Query instance created with a Java Persistence SELECT query.
    D. All managed entity objects corresponding to database rows affected by the update will have their state changed to correspond with the update.

  • Question 50:

    A developer writes a stateful session bean FooBarBean with two local business interfaces Foo and Bar. The developer wants to write a business method called getBarfor interface Foo that returns a Bar reference to the same session bean identity on which the client invokes getBar. Which code, when inserted on Line 12 below, implements the getBar method with the wanted behavior?

    10.

    ©Resource SessionContext sessionCtx;

    11.

    public BargetBarOJ

    12.

    13.}

    A. return(Bar)this;
    B. return(Bar) new FooBarBeanQ;
    C. return (Bar) sessionCtx.lookup("FooBarBean")
    D. return (Bar) sessionCtx.getBusinessObject(Bar.class);
    E. InitialContextic= new InitialContextQ; return (Bar) ic.lookup("java:comp/env/ejb/FooBarBean");

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.