What’s true about the lifecycle of a
servlet? (Choose all that apply.)
A. The service() method is the first method invoked by the container when a new request is received.
B. The service() method is invoked by either doPost() or doGet() after they’ve completed a request.
C. Each time that doPost() is invoked, it runs in its own
thread.
D. The destroy() method is invoked after every invocation of doGet() completes.
E. The container issues a separate thread for each client request.
In the book C and E are correct but I thick that A also can be correct. If for example would be used <load-on-startup>1</load-on-startup> element in DD. Then init() method would be called by container but not when the request is coming. As I understand init() would be called first if there would be first request of the servlet and there is no any additional pre-compile and loading on startup options.
Am I correct?
SCJP5, SCWCD5, SCBCD5, OCPJWSD5, OCMJEA 5