nerdexam
Oracle

1Z0-860 · Question #255

1Z0-860 Question #255: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #255. The question stem and answer options stay visible for context.

Question

A developer implemented a Java class called Store. The class is annotated correctly to act as an entity. The developer created a stateless session bean to create, lookup, and remove Store objects. This session bean has a container-managed entity manager injected into field em and a removeStore method with transaction attribute REQUIRED. Given the following code : 32. public void re move St ore (St ore store) { 33. em.remove(store); 34.} What is a possible reason that an HlegalArgumentException is thrown at Line 33 when the removeStore method is called by a remote client?

Options

  • AThe passed object is NOT serializable.
  • BThe passed object is NOT found in the database.
  • CThe passed object is NOT managed by the entity manager.
  • DThere is no active transaction to manage the database removal.

Unlock 1Z0-860 to see the answer

You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-860 Practice