Which three statements are correct?

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.)

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.)

A.
The cleanup method may declare checked exceptions.

B.
The cleanup method must have no arguments and return void.

C.
The cleanup method is executed in an unspecified transaction and security context.

D.
The developer should mark the cleanup method with the @PreDestroy annotation.

E.
The developer should mark the cleanup method with the @PostDestroy annotation.

F.
The cleanup method is executed in the transaction and security context of the last business
method Invocation.



Leave a Reply 0

Your email address will not be published. Required fields are marked *