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

    A developer creates the following session bean:

    10.

    ©Stateless

    11.

    @RolesAllowed("SECRET")

    12.

    public class MyBean implements Mylnterface {

    13.

    public void methodAOJ}

    14.

    @PermitAII

    15.

    public void methodB0 {}

    16.

    @DenyAII

    17.

    public void methodC0 {}

    18.

    } No deployment descriptor is supplied. Which two statements are true? (Choose two.)

    A. Auserin the role "SECRET" will be able to accessallof the methods.
    B. A user inthe role"FOO" will be able to accessmethodAandmethodB.
    C. A user withoutanyrolewill beable to accessmethodBbut NOTmethodA.
    D. A user in the role "SECRET"willbe able to accessmethodA andmethodB.
    E. A userintherole "SYSADM" will be abletoaccessmethodA,methodB, and methodC.

  • Question 102:

    Given: 10.©Stateless

    11.

    @RunAs("X")

    12.

    public class SecureBeanOl implements SecureOl {

    13.

    @EJB Secure02 secure02;

    23.

    @RolesAllowed("A")

    24.

    public void methodA0 {

    25.

    secureO2.methodB0;

    26.}

    10.©Stateless

    11. public void SecureBean02 implements Secure02{

    23.

    @RolesAllowed("A")

    24.

    public void methodB0 {

    A user who is only in role A invokes SecureOl. method . Assuming NO other security-related metadata, what is the expected result?

    A. An exception is thrown at Line 25.
    B. Anexceptionisthrown at Line 13.
    C. methodA cannot beinvokedbythis user.
    D. The codeexecutes without raising an exception.

  • Question 103:

    A developer is modifying an existing Java EE application that uses the JDBC API to access a database. This code must be used but cannot be changed, and new code needs to be added that uses the Java Persistence API. Both parts of the code will execute in the same JTA transaction. Which method of the EntityManager interface should the new code use to ensure that the data read by JDBC statements includes the state of managed entities?

    A. Call refresh on eachchangedentity.
    B. Callflushatthe end of each business method.
    C. Call find before accessing any managed entity.
    D. Calllockatthe beginning of each business method.

  • Question 104:

    A session bean's business method throws an exception during execution. Which two are responsibilities of the Bean Provider when throwing the exception? (Choose two.)

    A. For application exceptions, ensure that if the current transaction commits there will be no loss of data integrity.
    B. For application exceptions, ensurethatthe current transaction will commit.
    C. For system errors, when the client is remote, throw a java.rmi.RemoteException that wraps the original exception.
    D. For checked exceptions from which the bean cannot recover, throw an EJBException that wraps the original exception.

  • Question 105:

    An Application Assembler is given the following stateless session bean:

    10.

    ©Stateless public class MyBean implements Mylnt {

    11.

    @RolesAllowed("SECRET")

    12.

    public void methodA(int x) {}

    13.

    public void methodA(String y) {}

    14.

    public void methodB(String z) {}

    15.

    }

    A deployment descriptor is also supplied, a portion of which reads as follows:

    20.

    21.

    AGENT

    22.

    23.

    MyBean

    24.

    methodA

    25.

    26.

    Which statement is true?

    A. A client in any rolewill beabletoaccess anyof themethods.
    B. Aclient inthe role "AGENT" willbeable to access any ofthemethods.
    C. A client in therole"SECRET" will be able to access any of the methods.
    D. A client in the role "AGENT" will be abletoaccess methodB and methodA(String), but not methodA(int).
    E. Aclient in the role "SECRET" will beableto access methodA(int) and methodB, but NOT methodA(String).

  • Question 106:

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

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

    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.

  • Question 109:

    Given the following entity class:

    11.

    @Entity public class Customer)

    12.

    @ld private int id;

    13.

    private transient String name;

    14.

    private Java. math. BigDecimal grossAmmount; 15.} Which mapping annotation can be added to the fields of this entity?

    A. @Columntothe name field
    B. @Embeddedldto theid field
    C. @Basictothe grossAmmountfield
    D. @JoinColumnstothe grossAmmount field

  • Question 110:

    Given:

    11.

    @PersistenceContext EntityManager em;

    12.

    public boolean test(Order o) {

    13.

    boolean b = false;

    14.

    o = em.merge(o);

    15 em.remove(o);

    16.

    o = em.merge(o);

    17.

    b = em.contains(o);

    18.

    return b;

    19.}

    Which statement is correct?

    A. The method will return TRUE.
    B. Themethod will return FALSE.
    C. Themethodwill throw an exception.
    D. TheOrder instance willberemoved from the database.

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.