what is an servlet
A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed by means of a request-response programming model.Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by web servers. servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed by means of a request-response programming model.