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
    :

Oracle 1Z0-860 Online Questions & Answers

  • Question 1:

    A developer is writing implementation code for an EJB 3.0 message-driven bean class that processes booking requests. Within the business logic of the onMessage method, a temporary problem can occur. In that case the developer wants to make sure that the booking request is processed again in 30 minutes. Which two can the developer select? (Choose two.)

    A. Throwa runtimeexception torollbackthetransaction.
    B. Call setRollbackOnly on the MessageDrivenContext interface.
    C. Makeuseof the TimerService, and implement the TimedObject interface.
    D. Make use of the TimerService,implement areprocess method, and annotate it with @Timeout.
    E. Throw an application exception, and addtheretry-after attribute to the deployment descriptor.

  • Question 2:

    Which statement is true about the primary key of a Java Persistence entity?

    A. The primary key cannot be overriden by a mapping descriptor.
    B. The location of the primary key defines the topmost entity class in the hierarchy.
    C. If property-based access is used, the properties of the primary key class must be public or protected.
    D. At least part of a primary key must be defined in the class that is the topmost class of an entity which is defined by a hierarchy of classes.

  • Question 3:

    A session bean's business method invokes UserTransaction.setRollbackOnly and receives an HlegalStateException. Under which circumstance canthis happen?

    A. The bean is using bean-managed transactions regardless of whether there is an active transaction.
    B. There is no circumstance that would cause setRollbackOnly to throw an HlegalStateException.
    C. The bean is using bean-managed transaction demarcation, and UserTransaction.begin has NOT been invoked.
    D. The setRollbackOnly method is invoked within a bean-managed transaction, and UserTransaction.commit has NOT been invoked.

  • Question 4:

    Which statement is true about the Timer service in an EJB 3.0 stateless session bean?

    A. The timeout callback method contains the business logic that handles the timeout event.
    B. The timeout callback method must be declared as a business method in business interfaces.
    C. The timeout callback method can throw application exceptions to report business logic failures.
    D. A bean class can implement multiple timeout callback methods, each associated with a different timer.

  • Question 5:

    A developer writes a stateful session bean called FooBean. Which code can be inserted before Line 11 of the FooBean class to define a TYPE-level environment dependency on a JMS Topic?

    11.

    public class FooBean {

    12.

    13.

    public void fooQ {}

    14.

    15.}

    A. @Resource(type=Topic. class)
    B. @Resource(name="topicRef) private static Topic topic;
    C. ©ResourceprivateTopic topic;
    D. @Resource(name="topicRef', type=Topic. class)

  • Question 6:

    A developer is working on a project that includes both EJB 2.1 and EJB 3.0 session beans. A lot of business logic has been implemented and tested in these EJB 2.1 session beans. Some EJB 3.0 session beans need to access this business logic. Which design approach can achieve this requirement?

    A. Add adapted home interfaces to EJB 3.0 session beans to make EJB 3.0 and EJB 2.1 session beans interoperable.
    B. Add EJB 3.0 business interfaces to existing EJB 2.1 session beans and inject references to these business interfaces into EJB 3.0 session beans.
    C. No need to modify existing EJB 2.1 session beans. Use the @EJB annotation to inject a reference to the EJB 2.1 home interface into the EJB 3.0 bean class.
    D. No need to modify existing EJB 2.1 session beans. Use the @EJB annotation to inject a reference to the EJB 2.1 component interface into the EJB 3.0 bean class.

  • Question 7:

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

    A developer's objective is to end the persistence context associated with an application- managed entity manager. Which statement is correct?

    A. Invoke the flush method of theentitymanager.
    B. Invoke the close method of the entity manager.
    C. Invokethe clear methodofthe entity manager.
    D. Invoke the remove method of the entity manager.

  • Question 9:

    Which statement about the JoinTable annotation is true?

    A. It must be applied to a unidirectional many-to-one association.
    B. It can be applied to the owning side of a many-to-many association.
    C. It must be applied to the owning side of a unidirectional one-to-many association.
    D. If the name attribute is not specified it is derived from the names of the primary keys of the two entities involved in the association.

  • Question 10:

    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

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.