Oracle
1Z0-898 · Question #32
1Z0-898 Question #32: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-898 to reveal the answer and full explanation for question #32. The question stem and answer options stay visible for context.
Question
A developer wrote an entity class with the following method: Private static Logger logger = Logger.getLogger ("myLogger"); @PrePersist @PreUpdate Public void doA () { Logger.info ("A"); } @PostPersist @PostUpdate Public void doB () { logger.info ("B"); } What will the log message contain when an application does the following? 1. Begins a transaction 2. Creates the entity 3. Persists the entity 4. Commits the transaction 5. Begins the entity data 6. Modifies the entity data 7. Merges the entity 8. Commits the second transaction
Options
- AA
- BA
- CA
- DThe application will throw an exception because multiple lifecycle call-back annotations applied to
Unlock 1Z0-898 to see the answer
You've previewed enough free 1Z0-898 questions. Unlock 1Z0-898 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.