What i read about
servlet life cycle is
1.once the request made to servlet means, servlet mapped through web.xml file and
particular servlet class loaded in to memory
2. New instance will be created (how , who creates instance)
3. container calls init(), it is called only once throghout the life cycle of servlet
4. then service method called to handle the client request. service method called for each time
i know multiple requests and handled by
thread.
5. Finally , if the instance will not be accessed for long time or server shutdown means,
container removes instance by destroy().
Interviewer asked , two requests are waiting which one will be processed.
I am clear about lifecyle.
In HTTPServlet service() method called before doGet(), doPost() or not