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

    Given an EJB 3.0 J MS message-driven bean, which statement is true about its exception handling?

    A. Its message listener method must NOT throw any checked exception.
    B. Its message listener method can throw java. rmi. RemoteException.
    C. Its message listener method can throw any checked exception except java. rmi. RemoteException.
    D. Its message listener method can throw any checked exception that implements java. io.Serializable.

  • Question 222:

    A developer implements a session bean which acts as a session facade for an application. This means that clients will only see this session bean's interface which offers the application interface. There are three distinct roles known at development time"user", "admin", and "guest". The majority of the methods will be used by role "user". All methods must have role permissions active and roles may be added or changed in the future. Which two scenarios are correct? (Choose two.)

    A. The developer annotates the bean class with @PermitAII and annotates the methods used by role"guest" or "admin" individually.
    B. The developer annotates the bean class with @DenyAII and annotates the methods used by role"user", "guest", or "admin" individually.
    C. The developer defines individual method permissions for the methods used by roles "user","guest", and "admin" in the deployment descriptor.
    D. The developer annotates the bean class with @RolesAllowed("user") and annotates the methods used by role "guest" or "admin" individually.
    E. Thedeveloper defines a method permission with method name "*" and role "user" and adds individual method permissions for the methods used by roles "guest" and "admin" in the deployment descriptor.

  • Question 223:

    Which statement about the combination of mapping defaults, annotations, and XML descriptors is correct?

    A. All mapping annotations must always be processed by the persistence provider.
    B. Some annotations, like the @Entity annotation, must always be processed by the persistence provider.
    C. The mapping information for an entity class specified by annotations and in XML descriptors must be distinct.
    D. If multiple entity listeners are defined, the order in which they are invoked can be defined or overwritten in the XML descriptor.

  • Question 224:

    Which is a valid way of injecting a container-managed transaction-scoped persistence context into an EJB 3.0 session bean assuming the application contains only one persistence unit?

    A. @PersistenceUnit public EntityManager em;
    B. @PersistenceContext private EntityManager em;
    C. @TransactionManagement(TransactionManagementType. CONTAINER) public EntityManager em;
    D. @Resource(name="persistence/em", authenticationType=AuthenticationType. CONTAINER) protected EntityManager em;

  • Question 225:

    Bean Provider has been asked to write a stateless session bean, MyBean with a single method breakout. A System Administrator guarantees that all clients accessing the bean will be identified by mutual SSL authentication. The Bean Provider's task is to ensure that breakout always logs identity information of the client that invoked it. Which solution would satisfy this requirement?

    A. Access the identity information in the X.509 certificate used to authenticate the user from withinbreakout.
    B. UsethegetCallerPrincipalmethod onan injected SessionContext to determinetherequired information.
    C. Use the isCallerlnRole method onaninjected SessionContext todeterminethe required information.
    D. Ensurethatthe breakout method is appropriately annotatedwith@RolesAllowed.

  • Question 226:

    Given :

    public class MyException extends Exception {}

    The business interface Foo declares a method work0: I. public void work0 throws MyException;

    The bean class FooBean contains the following:

    10.©Stateless

    II. @Remote(Foo.class)

    12.

    public class FooBean {

    13.

    public void workQ throws MyException {

    14.

    //do some work not shown here

    15.

    throw new MyException0; 16.}

    Assuming there is no deployment descriptor, which statement is true when the workQ method is invoked by a client with an existing transaction context and execution reaches Line 15?

    A. The container does notroll back thetransaction.
    B. The clientreceives javax.ejb.EJBTransactionRequiredException.
    C. The clientreceivesjavax.ejb.EJBTransactionRolledbackException.
    D. Thecontainer marks the transactionforrollback by calling the EJBContext.setRollbackOnly method.

  • Question 227:

    A developer writes a stateless session bean with a constructor, a PostConstruct method, a PreDestroy method, and this business method:

    11.

    public String helloQj

    12.

    return "hello";

    13.}

    The container invokes the hello method on an instance of the bean. Which is true about that bean instance when control reaches Line 12?

    A. The constructor has NOT been invoked.
    B. ThePreDestroymethodhasbeeninvoked.
    C. The PostConstruct method has been invoked.
    D. Both the PostConstruct and PreDestroy methods have been invoked.

  • Question 228:

    A session bean calls the setRollbackOnly method on the EJBContext interface within a business method with an active transaction. Which two are correct? (Choose two.)

    A. The transaction timeout is immediately disabled.
    B. The container will ensure that the transaction will never commit.
    C. The bean must have started the current transaction for this to be legal.
    D. The bean must have bean-managed transaction demarcation for this to be legal.
    E. Thebean must have container-managed transaction demarcation for this to be legal.

  • Question 229:

    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. If Foo isstateful,testlistrue, and test2 is true.
    B. IfFoo is stateful, testlis true,andtest2isfalse.
    C. IfFoo is stateless, testl is true, and test2 is true.
    D. IfFoois stateful, testl is false, and test2 is false.
    E. If Foo isstateless, testl istrue,and test2 is false.
    F. If Fooisstateless, testl is false, andtest2is false.

  • Question 230:

    An enterprise bean has security permissions set up using declarative security features. Under which two conditions can a client be guaranteed to have permission to invoke a business method on the enterprise bean? (Choose two.)

    A. The Application Assembler has marked the enterprise bean methodasunchecked.
    B. The client's principalhas beenassigned a securityrolewithpermissionto invokethe method.
    C. The Application Assembler has set the security-identity deployment descriptor to run- as.
    D. TheApplicationAssemblerhas mapped all security role references using the role-link element.

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.