Oracle
1Z0-860 · Question #125
1Z0-860 Question #125: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #125. The question stem and answer options stay visible for context.
Question
A stateful session bean contains a number of instance variables. The types of instance variables A and B are NOT serializable. Instance variable B is a complex type which is populated by many business calls, and can, therefore, NOT be refilled by the client without starting all over. A helper instance variable C is defined as having a Serializable type, and can hold all the information which is in variable B. For example, B is of type XML-DOM Tree and C of type String. Which two solutions, when combined, maintain the state of the session bean over a passivation and activation by the container? (Choose two.)
Options
- AThe value of helper variable C is used to create the value of instance variable Bin the beans no- arg
- BThe value of helper variable C is used to create the value of instance variable Bin a @PostCreate
- CThe value of helper variable C is used to create the value of instance variable Bin a @PostActivate
- DInstance variable A must be made null and instance variable B must be converted to a Serializable type
- EInstance variable A must be defined transient.Instance variable B must be converted to a Serializable
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.