The Servlet is a class used in Java applications for enhancing the capabilities of the server. Servlets respond to a request from the browser and return response content and also run on web application server container and are used to generate HTML content that shows on the web browser.

There are two types of servlets - generic and HTTP

BY Best Interview Question ON 18 Jan 2019