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

    Which two are true about specifying Java EE environment annotation metadata for session bean classes? (Choose two.)

    A. Itis possible to inject a resource without using annotations.
    B. Only field-level annotations can be overriden by the deployment descriptor.
    C. Only type-level annotations can be overriden by the deployment descriptor.
    D. Resource annotations cannot be specified on a superclass of the session bean class.
    E. Type-level, method-level,andfield-level annotations can all beoverridden by thedeployment descriptor.
    F. Only field-level annotations and method-level annotations can be overridden by the deployment descriptor.

  • Question 62:

    Given the following code in an EJB 3.0 session bean:

    10.

    @Resource(name="jdbc/employeeDB")

    11.

    private DataSource dataSource;

    12.

    13.

    public void lookupEmployee(String id) {

    14.

    InitialContext ic = new InitialContextO;

    15.

    // insert code here

    16.

    DataSource ds = (DataSource) obj;

    17.}

    Which code, inserted at Line 15, portably looks up the injected resource?

    A. Object obj = ic.lookup("employeeDB");
    B. Object obj = ic.lookup("dataSource");
    C. Object obj = ic.lookup("jdbc/employeeDB");
    D. Object obj = ic.lookup("javacomp/env/employeeDB");
    E. Object obj = ic.lookup("java:comp/env/jdbc/employeeDB");

  • Question 63:

    Which statement is true about the use of a persist operation in a transaction?

    A. If a user persists a detached object it always becomes managed.
    B. The persist operation on an entity always cascades to its related entities.
    C. If a user persists a new entity with an existing primary key the transaction will fail.
    D. If a user persists a managed entity an exception may be thrown by the persist operation.

  • Question 64:

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

    A developer writes a session bean which uses several configurable constants. The constants are all defined as String types in JNDI. This cannot be changed because existing code is using the same JNDI information. One of the constants is a date, represented in string format. This date constant is used in multiple business methods of this session bean, actually as a Date object. Converting strings to dates is an expensive operation; therefore, the developer wants to do as little converting as possible. Which two scenarios can be used to prevent converting from String to Date in every business method? (Choose two.)

    A. Loadthe date string in an instance Date type variablebyannotation of the instance variable and let the container autoconvert it to a Datetypeautomatically.
    B. Load thedate string in an instance String type variablebyannotation of this instance variableandconvertitto aDatetype object in the beans constructor.
    C. Load thedatestringinaninstanceString typevariableby annotationof this instance variable and convert it to aDate typeobjectin a@PostConstructannotatedmethod.
    D. Load the date string in an instance Date typevariableby annotation ofasetter method that takes a String and which carries out the conversion and assigns the value totheinstance variable.

  • Question 66:

    A deployer is given the following session bean:

    10.

    ©Stateless

    11.

    @RolesAllowed("BATH")

    12.

    @DeclareRoles("SOAP")

    13.

    public class ShowerBean implements Shower {

    14.

    public void plugO {} 15.}

    and the following associated excerpt from the ejb-jar.xml descriptor file:

    20.

    21.

    22.

    TOWEL

    23.

    24.

    Which roles is the deployer expected to map to users or user groups?

    A. TOWEL
    B. BATHandSOAP
    C. BATH and TOWEL
    D. BATH and SOAP and TOWEL

  • Question 67:

    Which two statements are true about EJB 3.0 JMS message-driven beans? (Choose two.)

    A. The developer can use JMS messageselector declarationsto restrict the messages that the bean receives.
    B. The developer can associate the bean with a specific queue or topic using the resource-ref element of the deployment descriptor.
    C. To achieve concurrent processing of more than one message at a time, more than one bean class must be associated with the same JMS queue.
    D. The developer can usetheactivationConfigelementoftheMessageDrivenannotationto specify whether the bean should be associated with a queue or a topic.

  • Question 68:

    The syntax of the ORDER BY clause is defined in the Java Persistence API asorderby_clause ::=ORDER BY orderbyjtem {, orderbyjtem}* Which statement is correct about the use of ORDER BY clauses?

    A. Only literals can be specified as an orderbyjtem.
    B. Fields or properties of any type can be specified as an orderbyjtem.
    C. The ordering must be specified if two or more orderbyjtem methods are provided.
    D. If two orderbyjtem methods are provided the left orderbyjtem has the higher precedence.

  • Question 69:

    A developer creates a statelesssession bean, EmployeeServiceBean, and itsinterface, EmployeeSeivice. The session bean uses two annotated entity classes, Employee.class and Department.class. Which two packaging options can the developer use when creating a deployable EAR? The proposed directory structure is listed for each option. (Choose two.)

    A. emp.ear emp-ejb.jar META-INF/persistence. Xml EmployeeSeivice. Class EmployeeServiceBean. Class lib/emp-classes.jar Employee.class Department.class
    B. emp.ear META-INF/orm.xml emp-ejb.jar EmployeeSeivice. class EmployeeServiceBean. class Employee.class Department.class
    C. emp.ear emp-ejb.jar META-INF/persistence. xml Employee.class Department.class EmployeeSeivice. class EmployeeServiceBean. class
    D. emp.ear emp-ejb.jar persistence.xml Employee.class Department.class EmployeeSeivice. class EmployeeServiceBean. Class

  • Question 70:

    Which two statements about the EJBContext. isCallerlnRole method are correct? (Choose two.)

    A. Message-drivenbeans must NOT call the isCallerlnRole method.
    B. The isCallerlnRole method may be called in a session bean constructor.
    C. The isCallerlnRole method can be called in any business method of a stateless or a stateful session bean.
    D. The isCallerlnRole method can be called in the PostConstruct and PreDestroy lifecycle callback methods of a stateless session bean.

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.