Menu

Why there is no main method in Servlet?

A Java Servlet is a plugin to a web server and always run in web container.

When we run any program that has main method, the program runs the web server with the help of main method. And a web server runs the Servlet.

No comments:

Post a Comment