Servlets does not contain main method..,
December 29, 2009 at 9:16 PM
Normal java program is a stand alone programme so it require main method to run in the system , But the servlet is an web component which can run at a time with multiple users so it don't require main method. Because for each user one object of servlet will create for every request..so that servlet don't have main method.
View All Comments
| View Tutorial