---
title: "what is java Servlet ?"  
description: "what is java Servlet ?"  
author: "Prakash nidhi Verma"  
published: 2018-07-18  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/23471/what-is-java-servlet  
category: "java"  
tags: ["android", "java"]  
reading_time: 1 minute  

---

# what is java Servlet ?

Java Servlets :

A servlet is a Java class which is used to extend the capabilities of servers that host applications accessed by means of a request-response model. Servlets are mainly used to extend the applications hosted by webs servers, however, they can respond to other types of requests too. For such applications, HTTP-specific servlet classes are defined by Java Servlet technology.

- it plays a controller role in MVC approach

- it can accept all protocol requests

- reloading,recompiling and restarting the server

## Answers

### Answer by Prakash nidhi Verma

Java Servlets :

A servlet is a Java class which is used to extend the capabilities of servers that host applications accessed by means of a request-response model. Servlets are mainly used to extend the applications hosted by webs servers, however, they can respond to other types of requests too. For such applications, HTTP-specific servlet classes are defined by Java Servlet technology.

- it plays a controller role in MVC approach

- it can accept all protocol requests

- reloading,recompiling and restarting the server


---

Original Source: https://www.mindstick.com/interview/23471/what-is-java-servlet

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
