Hi,
with reference to Headfirst:
Servlets dont have main() method. they are under the control of another
java application called Container.
tomcat is an example for a Container. It's the container that gives the servlet the HTTP request and response and also it calls the servlet's methods.(doGet()/doPost())