Oracle
1Z0-860 · Question #5
1Z0-860 Question #5: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #5. The question stem and answer options stay visible for context.
Question
A developer writes two session beans which cooperate. The first session bean, ShoppingCart, collects orders and is implemented as a stateful session bean. The second session bean, CalculateDiscount, is implemented as a stateless session bean and runs on a different server. ShoppingCart contains the method getTotalPrice, which calculates the total price of the order in the ShoppingCart, including discounts. Discounts are calculated by CalculateDiscount using the information on the ShoppingCart bean, combined with data from a database. Which scenario can accomplish this?
Options
- AThe CalculateDiscount offers a method calculate which is invoked by the ShoppingCart bean passing
- BThe CalculateDiscount offers a method calculate which is invoked by the ShoppingCart bean.
- CThe CalculateDiscount offers a method calculate which is invoked by the ShoppingCart bean passing its
- DThe CalculateDiscount offers a method calculate which is invoked by the ShoppingCart bean.
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.