What prompted the question? It doesn't seem to make much sense.
jasvinder Pal singh
Greenhorn
Joined: Oct 04, 2011
Posts: 6
posted
0
thanks
what i meant is..
there are two ways
1) first when the servlet get deployed in a web server container for the first time
2) when the client call the first request.
Sorry, there is only one way - your 2 is the same as your 1. The container will call init after the servlet instance is created and before the first request is processed, no matter what sequence of events caused the creation.