Oracle
1Z0-895 · Question #32
1Z0-895 Question #32: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-895 to reveal the answer and full explanation for question #32. The question stem and answer options stay visible for context.
Question
A developer writes a Singleton bean that holds state for a single coordinate: An update thread acquires an EJB reference to CoordinateBean and alternates between invoking SetCoordinate (0, 0) and SetCoordinate (1, 1) in a loop. At the same time, ten reader threads each acquire an EJB reference to CoordinateBean and invoke getCoordinate () in a loop. Which represents the set of all possible coordinate values [X, Y] returned to the reader threads?
Exhibit
Options
- A[0, 0]
- B[1, 1]
- C[0, 0], [1, 1]
- D[0, 0], [0, 1], [1, 0], [1, 1]
Unlock 1Z0-895 to see the answer
You've previewed enough free 1Z0-895 questions. Unlock 1Z0-895 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.
