by Kishan » Sun Feb 10, 2013 5:47 am
Programmer doesn't have any control when the servlet object being created. But one thing is sure when client sends request container checks for existing servlet object if it is not available it creates object otherwise existing object will serve the request.
As a programmer you can ensure creating servlet object during server startup time by spacifying <load-on-start> element in the web.xml or annotation.