Hi friends, i can define Servlet in many ways which is as follows:
Servlet is a server-side technology to develop dynamic web application.
Servlet is nothing but a .java file (multi-threaded java program) which is executed by web server(Tomcat). When multiple users send the request to the Servlet, then all requests will processed by web container(a part of web server) by creating multiple threads for the same Servlet.
Servlet is an interface that must be implemented for creating any Servlet.
Advantages of servlet
Less response time because each request runs in a separate thread.