| |
GeekInterview.com > Interview Questions > J2EE > JSP
| Print | |
Question: Why main() is not written in servlets programs?
|
| August 08, 2008 03:21:36 |
#7 |
| vinayroz |
J2EE Expert Member Since: August 2008 Total Comments: 3 |
RE: Why main() is not written in servlets programs? |
Simple java programs are stand alone application and in this case we have to specify the starting point of execution for interpreter but servlets are server side tech and based on client request. Whenever client send a request, webcontainer calls servlet with its own life cycle method. So there is no need of having main() method in servlets. |
| |
Back To Question | |