nerdexam
Oracle

1Z0-895 · Question #25

1Z0-895 Question #25: Real Exam Question with Answer & Explanation

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

Question

A developer wants to release resources within a stateless session bean class. The cleanup method should be executed by the container before an instance of the class is removed. The deployment descriptor is NOT used. Which three statements are correct? (Choose three.)

Options

  • AThe cleanup method may declare checked exceptions.
  • BThe cleanup method must have no arguments and return void.
  • CThe cleanup method is executed in an unspecified transaction and security context.
  • DThe developer should mark the cleanup method with the @PreDestroy annotation.
  • EThe developer should mark the cleanup method with the @PostDestroy annotation.
  • FThe cleanup method is executed in the transaction and security context of the last business method

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.

Full 1Z0-895 Practice