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
    :Mar 31, 2025

Oracle Oracle Certifications 1Z0-860 Questions & Answers

  • Question 191:

    Given:

    5.

    public interface MrB1 {

    6.

    public interface MrB2 { Ajava class is defined as:

    11.

    ©Stateless

    12.

    public class MrBean implements MrB1 ,MrB2 {

    Which two statements are correct for making this code work as a stateless session bean, considering that this session bean is NOT defined in a deployment descriptor and the interfaces do NOT have annotations? (Choose two.)

    A. Only the inteface for remote usage must be annotated.

    B. The interfaces MrB1 and MrB2 can only be used locally without changing the code.

    C. Both interfaces MrB1 and MrB2 must be annotated to make this a working stateless session bean.

    D. The interfaces MrB1 and MrB2 can be annotated differently, one with @Local and the other with @Remote.

  • Question 192:

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

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

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

    A Java Persistence application wants to use optimistic locking. Which statement that describes the functionality of optimistic locking is correct?

    A. The Version attribute of an entity using optimistic locking can be mapped to a secondary table.

    B. Optimistic locking can be used by Java Persistence applications to set optimistic locks on tables in the database.

    C. The Version attribute of an entity using optimistic locking is verified each time the instance is loaded from the database.

    D. Optimistic locking ensures that updates or deletes are consistent with the current state of the database and that intervening updates are not lost.

  • Question 196:

    Which two class types must be implicitly or explicitly denoted in the persistence.xml descriptor as managed persistence classes to be included within a persistence unit?(Choose two.)

    A. Entity classes

    B. Interceptor classes

    C. Embedded classes

    D. Entity listener classes

  • Question 197:

    A developer obtains a Java, security. Principal object by calling the SessionContext.getCallerPrincipal method from within a business method of a session bean. Which statement is true?

    A. The returned Principal object can be null.

    B. The roles which the Principal is in can be determined from this Principal object.

    C. The return value of Principal. getName depends on the security realm which was used to authenticate thecaller.

    D. The return value of the Principal. getName method is exactly the same as the username used for authentication of the caller.

  • Question 198:

    The Java Persistence API defines a notion of propagation of a persistence context. Which statement is correct?

    A. Persistence context propagation is NOT supported for message-driven beans.

    B. Persistence context propagation is supported for any type of an entity manager.

    C. Persistence context propagation avoids the need for the application to pass references of entity manager instances.

    D. Persistence context propagation results in cloning of all managed instances for use by another instance of an entity manager.

  • Question 199:

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

    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.

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.