nerdexam
Oracle

1Z0-900 · Question #7

1Z0-900 Question #7: Real Exam Question with Answer & Explanation

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

Use CDI Beans

Question

Given the code fragment: Which code can be added to register both of these methods to receive BankEvent notifications only if an instance of BankActivityService is already instantiated in the current context?

Options

  • A@Observes(notifyObserver=IF_EXISTS) on line 3 and line 6
  • B@Observes(during=IN_PROGRESS) on line 1
  • C@Observes(during=AFTER_COMPLETION) on line 1
  • D@Observes(notifyObserver=IF_EXISTS) on line 4 and line 7 before method parameter declaration

Unlock 1Z0-900 to see the answer

You've previewed enough free 1Z0-900 questions. Unlock 1Z0-900 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.

Topics

#CDI Observer Methods#Event Handling#Bean Lifecycle Aware#notifyObserver Parameter
Full 1Z0-900 Practice