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 cleanupmethodmusthave noarguments andreturn void.

C.
The cleanup method isexecuted inan unspecifiedtransactionand security context.

D.
The developer should mark the cleanup methodwiththe @PreDestroy annotation.

E.
The developershouldmark thecleanupmethodwiththe @PostDestroy annotation.

F.
Thecleanup method is executed inthetransactionandsecurity context ofthelast business method
invocation.



Leave a Reply 0

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