A developer writes a stateless session bean with a constructor, a PostConstruct method, a
PreDestroy method, and this business method:
11. public String helloQj
12. return “hello”;
13.}
The container invokes the hello method on an instance of the bean. Which is true about that bean
instance when control reaches Line 12?
A.
The constructor has NOT been invoked.
B.
ThePreDestroymethodhasbeeninvoked.
C.
The PostConstruct method has been invoked.
D.
Both the PostConstruct and PreDestroy methods have been invoked.
Explanation: