Similar to the way applets run on a browser and extend the browser's capabilities, servlets run on a Java-enabled Web server and extend the Web server's capabilities.
Servlets can support dynamic Web page content, provide database access, serve multiple clients at one time, and filter data by MIME type.
Servlets are Java programs that use the Java Servlet Application Programming Interface (API).They can exist as separate class files (compiled java files), or can be included in a JAR (Java ARchive) file or WAR (Web ARchive) file.