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

    A stateful session bean contains a number of instance variables. The types of instance variables A and B are NOT serializable. Instance variable B is a complex type which is populated by many business calls, and can, therefore, NOT be refilled by the client without starting all over. A helper instance variable C is defined as having a Serializable type, and can hold all the information which is in variable B. For example, B is of type XML-DOM Tree and C of type String. Which two solutions, when combined, maintain the state of the session bean over a passivation and activation by the container? (Choose two.)

    A. The value of helper variable C is used to create the value ofinstancevariableBin the beans noarg constructor.
    B. Thevalueofhelper variable C is usedtocreate the value ofinstancevariableBin a @PostCreate annotated method.
    C. The value ofhelpervariable C isusedto create the value of instance variableBin a@PostActivate annotated method.
    D. Instancevariable A must be made null and instance variable B mustbeconverted toaSerializable type and assigned to anotherinstancevariable in a @PreDestroy annotated method.
    E. Instance variableAmustbedefinedtransient.Instance variableBmustbe convertedtoaSerializable type,set to null,and assigned totheinstancevariableC ina@PrePassivate annotatedmethod.

  • Question 172:

    Given a stateless session bean with container-managed transaction demarcation, from which two methods can a developer access another enterprise bean? (Choose two.)

    A. beanconstructor
    B. Timeout callback method
    C. PreDestroy lifecycle callback method
    D. PostConstruct lifecycle callback method
    E. businessmethod fromthebusiness interface

  • Question 173:

    A developer is writing client code for an EJB 3.0 message-driven bean that is listening on a JMS queue. Which statement is true?

    A. The transaction context of the client is propagated to the bean.
    B. If the bean instance crashes the client will need to resend all pending requests.
    C. The client can call the bean method annotated with @Remove to remove the message-driven bean instance.
    D. Requests sent by the client while the EJB server is down are processed by the bean after restarting the server.

  • Question 174:

    Given the method invocation sequence:

    Method 1 calls Method 2 Method 2 calls Method 3 Method 1 calls Method 4 And the transaction scope:

    Method 1Transaction A Method 2Transaction A Method 3Transaction A Method 4Transaction B Assuming Method 1 is invoked by a client without an existing transaction context, which set of transaction attributes will support this scope?

    A. Method1NEVER Method 2SUPPORTS Method 3REQUIRED Method 4REQUIRES_NEW
    B. Method1REQUIRES_NEW Method 2MANDATORYMethod 3SUPPORTS Method 4REQUIRES_NEW
    C. Method1REQUIRES_NEW Method 2MANDATORY Method 3SUPPORTS Method 4SUPPORTS
    D. Method 1MANDATORY Method 2REQUIREDMethod 3SUPPORTSMethod 4REQUIRES NEW

  • Question 175:

    Given:

    A session bean Foo uses container-managed transactions The container throws a javax.transaction.TransactionRolledBackException when the doStuff method runs. Which transaction attribute can the doStuff method have for this to occur?

    A. NEVER
    B. MANDATORY
    C. REQUIRES_NEW
    D. NOT SUPPORTED

  • Question 176:

    Which example of Java Persistence identity definitions is portable and correct assuming NO mapping descriptor is present?

    A. ©Entity public class A { @ld private float id; // more code here }
    B. @ldClass(com. acme. LineltemPK. class) ©Entity public class Lineltem { @ld int orderld; @ld int lineltemld; // more code here }
    C. @Entity public class Project { @ld@GeneratedValue(strategy=TABLE) public String getProjectldQ {return pid;} // more code here }
    D. ©Entity public class Employee { @ld public Java.util.Date getBirthdayO {return bday;} // more code here

  • Question 177:

    Which is a correct way of defining a runtime exception as an EJB 3.0 application exception?

    A. public class MyAppException extends javax.ejb.EJBException
    B. @ApplicationException public class MyAppException extends Java. rmi.RemoteException
    C. public class MyAppException extends Java. lang. RuntimeException
    D. @ApplicationException public class MyAppException extends Java. lang. RuntimeException

  • Question 178:

    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 test zero 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 179:

    A developer writes two session beans which cooperate. The first session bean, ShoppingCart, collects orders and is implemented as a stateful session bean. The second session bean, CalculateDiscount, is implemented as a stateless session bean and runs on a different server. ShoppingCart contains the method getTotalPrice, which calculates the total price of the order in the ShoppingCart, including discounts. Discounts are calculated by CalculateDiscount using the information on the ShoppingCart bean, combined with data from a database. Which scenario can accomplish this?

    A. The CalculateDiscount offers a method calculate which is invoked by the ShoppingCart bean passing the this reference.
    B. The CalculateDiscount offers a method calculate which is invoked by the ShoppingCart bean. CalculateDiscount accesses the ShoppingCart instance by JNDI lookup.
    C. The CalculateDiscount offers a method calculate which is invoked by the ShoppingCart bean passing its reference obtained from the SessionContext.getBusinessObject method.
    D. The CalculateDiscount offers a method calculate which is invoked by the ShoppingCart bean. CalculateDiscount accesses the state of ShoppingCart by dependency injection.

  • Question 180:

    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;

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.