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
:Jul 15, 2026
Oracle 1Z0-860 Online Questions &
Answers
Question 11:
Which two are true about the Java EE 5 client-view of a message-driven bean? (Choose two.)
A. Referencestomessage destinations can be injected. B. Asof EJB3.0, referencestomessage destinations cannot be looked upin theclient's JNDI namespace. C. Clients of a message destination need to know that the destination is listened to byapool of message consumers. D. Clients of a message destination do NOT needto knowthat the destination is listened to by a message-driven bean.
A. Referencestomessage destinations can be injected. D. Clients of a message destination do NOT needto knowthat the destination is listened to by a message-driven bean.
Question 12:
A developer is writing a stateless session bean that is obtaining a transaction-scoped entity manager using injection and assumes the application defines one persistence unit. Which declaration is correct?
A developer has created an application-managed entity manager. Which statement is correct?
A. A new persistence context begins when the entity manager is created. B. A new persistence context begins when a new JTA transaction begins. C. A new persistence context begins when the entity manager is invoked in the context of a JTA transaction. D. A new persistence context begins when the entity manager is invoked in the context of a resource-local transaction.
A. A new persistence context begins when the entity manager is created.
Question 14:
A developer has obtained a container-managed entity manager in a stateless session bean. Which two statements are correct? (Choose two.)
A. Invoking the flush method without a transaction will throw an exception. B. Invoking the clear method without a transaction will throw an exception. C. Invoking the persist method without a transaction will throw an exception. D. Invoking the find method for an entity that does NOT exist will throw an exception.
A. Invoking the flush method without a transaction will throw an exception. C. Invoking the persist method without a transaction will throw an exception.
Question 15:
A developer writes an interceptor class called Foolnterceptor containing the following Aroundlnvoke method:
11.
@Aroundlnvoke
12.
public Object intercept(lnvocationContext ctx) {
13.
return "intercepted";
14.}
Foolnterceptor is applied to a business method in a stateless session bean:
11.
@lnterceptors(Foolnterceptor.class)
12.
public String testzero(int i) {
13.
return (i == 0) ? "zero""not zero";
14.
}
Which describes the result when a client invokes the testzero method with a value of 1?
A. The intercept method is NEVER invoked. B. The clientreceivesareturnvalueof "zero". C. The client receivesa returnvalue of "not zero". D. The client receivesareturn value of "intercepted".
D. The client receivesareturn value of "intercepted".
Question 16:
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.
A. The timeout callback method contains the business logic that handles the timeout event.
Question 17:
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 18:
A developer wants to release resources within a stateless session bean class. The cleanup method should be executed by the container before an instance of the class is removed. The deployment descriptor is NOT used. Which three statements are correct? (Choose three.)
A. The cleanup method may declare checked exceptions. B. The cleanupmethodmusthave noarguments andreturn void. C. The cleanup method isexecuted inan unspecifiedtransactionand security context. D. The developer should mark the cleanup methodwiththe @PreDestroy annotation. E. The developershouldmark thecleanupmethodwiththe @PostDestroy annotation. F. Thecleanup method is executed inthetransactionandsecurity context ofthelast business method invocation.
B. The cleanupmethodmusthave noarguments andreturn void. C. The cleanup method isexecuted inan unspecifiedtransactionand security context. D. The developer should mark the cleanup methodwiththe @PreDestroy annotation.
Question 19:
Which statement is correct about the Java Persistence API support for the SQL queries?
A. SQL queries are NOT allowed to use parameters. B. The result of an SQL query is not limited to entities. C. Only SELECT SQL queries are required to be supported. D. SQL queries are expected to be portable across databases.
B. The result of an SQL query is not limited to entities.
Question 20:
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.