Oracle 1Z0-860 Online Practice
Questions and Exam Preparation
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 51:
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.
A. For application exceptions, ensure that if the current transaction commits there will be no loss of data integrity. D. For checked exceptions from which the bean cannot recover, throw an EJBException that wraps the original exception.
Question 52:
A developer wants to create a JMS message-driven bean that responds to javax.jms.TextMessage messages. Which two statements are true? (Choose two.)
A. The developer must implement the ejbCreate method. B. The developer does NOT need to create a business interface for the bean. C. The developer must implement a method that declares javax.jms.TextMessage as an argument. D. The message-driven bean class must implement methods of the javax.jms.MessageListener interface. E. The message-driven bean class must implement methods of the javax. ejb. MessageDnvenBean interface.
B. The developer does NOT need to create a business interface for the bean. D. The message-driven bean class must implement methods of the javax.jms.MessageListener interface.
Question 53:
While executing a business method in a stateless session bean the container rolls back the method's transaction. Which three are possible causes for the container's behavior? (Choose three.)
A. The bean uses container-managed transactions and invokes EJBContext.setRollbackOnly. B. The bean uses container-managed transactions and invokes EJBContext.getRollbackOnly. C. The business method invokes a method that throws an uncaught java.lang.NullPointerException. D. The business method throws a checked exception of a class type that is marked with the @ApplicationException annotation with the rollback element value false. E. The business method throws an unchecked exception of a class type that is marked with the @ApplicationException annotation with the rollback element value true. F. The bean uses container-managed transactions and throws a checked exception of a class type that is marked with the @ApplicationException annotation with the rollback element value false.
A. The bean uses container-managed transactions and invokes EJBContext.setRollbackOnly. C. The business method invokes a method that throws an uncaught java.lang.NullPointerException. E. The business method throws an unchecked exception of a class type that is marked with the @ApplicationException annotation with the rollback element value true.
Question 54:
Which two are true about EJB 3.0 exception classes? (Choose two.)
A. The javax.ejb.NoSuchEJBException is an application exception. B. The javax.ejb.EJBException extends Java. lang. RuntimeException. C. The javax.ejb.EJBTransactionRequiredException is an application exception. D. An application exception must NOT be a subclass of Java.rmi.RemoteException. E. The javax.ejb.EJBTransactionRolledbackException is an application exception. F. Any subclass of Java.lang.RuntimeException is always considered a system exception.
B. The javax.ejb.EJBException extends Java. lang. RuntimeException. D. An application exception must NOT be a subclass of Java.rmi.RemoteException.
Given that the Auction entity maps to an AUCTION database table and the Item entity maps to an ITEM database table, which statement is correct assuming there is NO mapping descriptor?
A. The relationship is mapped to a foreign key in the ITEMtable. B. Therelationship is mapped usingajointableAUCTIONJTEM. C. The relationship is mappedtoaforeignkeyinthe AUCTIONtable. D. The relationshipis mapped to foreignkeysinbothITEMandAUCTION tables.
C. The relationship is mappedtoaforeignkeyinthe AUCTIONtable.
Question 56:
Which statement is true about both stateful session beans and stateless session beans?
A. Bean instances are NOT required to survive container crashes. B. Any bean instance must be able to handle concurrent invocations from different threads. C. A bean with bean-managed transactions must commit or roll back any transaction before returning from a business method. D. The container passivates and activates them using methods annotated with @PrePassivate and @PostActivate annotations.
A. Bean instances are NOT required to survive container crashes.
Question 57:
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.
C. The return value of Principal. getName depends on the security realm which was used to authenticate thecaller.
Question 58:
The bean class of an EJB Web service endpoint has one method annotated with @WebMethod. Which two types can be legally returned from that method? (Choose two.)
A. Java. util. Date B. javax.ejb.Timer C. an array ofJava.lang. String D. an EJB3.0local businessinterfacereference E. an EJB3.0 remotebusiness interfacereference
A. Java. util. Date C. an array ofJava.lang. String
Question 59:
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.
A. Its message listener method must NOT throw any checked exception.
Question 60:
The Java Persistence API defines the Query interface. Which two statements about the Query.executeUpdate method are true? (Choose two.)
A. Itmust always be executed within a transaction. B. It throws a PersistenceException if no entities were updated. C. It throws an HlegalStateException if called on a Query instance created with a Java Persistence SELECT query. D. All managed entity objects corresponding to database rows affected by the update will have their state changed to correspond with the update.
A. Itmust always be executed within a transaction. C. It throws an HlegalStateException if called on a Query instance created with a Java Persistence SELECT query.
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.