As i have understood from the HSFJ book, Servlet initialization is to instantiate the Servlet and call its init() method.
But in the The Java Server Pages (JSP) Technology Model mock exam of j2eecertificate, the following question :
Which of the following JSP page life-cycle phases occur before the container initialises a servlet instance? [Select all correct answers]
Is saying that answers 2, 3 and 4 are correct, but, from my understanding i have only chosen answers 2 and 4, which gave me a wrong answer
Please clear my doubts about Servlet initialization.
Thanks advance ...
I know that each action is a separate process, but in the the HFSJ book, page 403, there's somewhere that's saying :
initializes a servlet (instantiates the servlet the calls init() on the new object)
This was the thing that made me ask and have a doubt.
So please clear my doubt about the mock question, by initialization it is meaning the actual invocation of the init() method right ?
Thanks in advance ...
You guys have cleared my doubts
Best regards ...