Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > Oracle > Oracle Certifications > 1Z0-860 > 1Z0-860 Online Practice Questions and Answers

1Z0-860 Online Practice Questions and Answers

Questions 4

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.

Buy Now

Correct Answer: C

Questions 5

Given :

9. @Stateful

10. @TransactionManagement(TransactionManagementType. BEAN)

11. public class FacadeBean implements Facade { 12 @EJB Business business;㏑esource SessionContext ctx;

13. public void startStuff0 throws Exception {

14. ctx.getUserTransactionQ.beginO;

15. business. doA0;

16. business. doBQ;

17.}

18. public void endStuff0 throws Exception {

19. ctx.getUserTransactionO.commit0;

11. ©Stateless

12. public class BusinessBean implements Business { 13.©Resource SessionContext ctx;

14. public void doAO { ctx.setRollbackOnlyQ; }

15. @TransactionAttributeO"ransactionAttributeType.REQUIRES_NEW)

16. public void doBQj}

A client calls startStuff and endStuff subsequently. Assuming NO other transaction- related metadata, which two statements are correct? (Choose two.)

A. MethoddoB isnevercalled.

B. The transactionin methoddoB is committed.

C. The transactioninmethod doB is rolledback.

D. An exception is thrown when calling method endStuff.

E. An exception is thrown when calling method startStuff.

Buy Now

Correct Answer: BD

Questions 6

An application wants to utilize side-effects of cascading entity-manager operations to related entities. Which statement is correct?

A. The persist operation is always cascaded to related entities for one-to-one and one-to- many relationships

B. To minimize the effect of the remove operation applied to an entity participating in a many- tomany relationship the remove operation should be cascaded to entities on both sides of the relationship.

C. The persist operation applied to a new entity X is cascaded to entities referenced by X if the relationship from Xto these other entities is annotated with the cascade=PERSIST or cascade=ALL annotation element value.

D. The remove operation applied to a removed entity X is cascaded to entities referenced by X if the relationship from Xto these other entities is annotated with the cascade=REMOVE or cascade=ALL annotation element value.

Buy Now

Correct Answer: C

Questions 7

The execution of the find method in the following code throws an exception:

11.

em.find(Customer.class, custld);

12.

//Where em is a reference to a extended scoped entity manager.

Which scenario can cause the exception?

A. Thefindmethod was called without a transaction.

B. Theentity corresponding to therequestedprimary key has been removed.

C. The entity corresponding to therequestedprimarykeyhas beendetached.

D. The data type of custld is NOT a valid type fortheCustomer entity primary key.

Buy Now

Correct Answer: D

Questions 8

Which example of Java Persistence identity definitions is portable and correct assuming NO mapping descriptor is present?

A. ©Entity public class A { @ld private float id; // more code here }

B. @ldClass(com. acme. LineltemPK. class) ©Entity public class Lineltem { @ld int orderld; @ld int lineltemld; // more code here }

C. @Entity public class Project { @ld@GeneratedValue(strategy=TABLE) public String getProjectldQ {return pid;} // more code here }

D. ©Entity public class Employee { @ld public Java.util.Date getBirthdayO {return bday;} // more code here

Buy Now

Correct Answer: B

Questions 9

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.

Buy Now

Correct Answer: C

Questions 10

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.

Buy Now

Correct Answer: B

Questions 11

The Java Persistent API defines certain rules for persistent entities. These rules are required by the persistent provider to manage entities at runtime. Which statement is correct, assuming NO mapping descriptor is used?

A. Entitiesmust extenda persistent base class.

B. Entities must implement the interface PersistentEntityto bemanaged bythepersistent provider.

C. Afield withoutatransient modifier mustbeannotated as ©Persistent to be stored in the database.

D. A field without a transient modifier must be annotated as ©Transient to NOT be stored in the database.

Buy Now

Correct Answer: D

Questions 12

A developer is writing client code for an EJB 3.0 message-driven bean that is listening on a JMS queue. Which statement is true?

A. The transaction context of the client is propagated to the bean.

B. If the bean instance crashes the client will need to resend all pending requests.

C. The client can call the bean method annotated with @Remove to remove the message-driven bean instance.

D. Requests sent by the client while the EJB server is down are processed by the bean after restarting the server.

Buy Now

Correct Answer: D

Questions 13

Which two statements are true? (Choose two.)

A. Alltypes ofenterprise beans can be transaction-aware.

B. Typically, fine-grained objects, such as an employee record, should be remotely accessible.

C. Theclientview ofanygiven enterprise bean will be consistent acrossall EJB3.0 containers withouttheneed to recompile the bean.

D. As long as a given enterprise bean is NOT recompiled, its security attributes are guaranteed to be consistent across all EJB 3.0 containers in which it is deployed.

Buy Now

Correct Answer: AC

Exam Code: 1Z0-860
Exam Name: Java Enterprise Edition 5 Business Component Developer Certified Professional
Last Update: May 30, 2026
Questions: 305

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2026 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.