A Servlet container is used when user wants to read the web pages as per input. It is a part of web server which can be run in a separate process.
There are the following functions of the Servlet container.
Lifecycle management : – This is manages the servlet life and death like service, initialization, class loading and servlet object instance is available for garbage collection.
Communication support : – This is handle the communication between web server and servlet.
Multithreading support :- When a servlet request is generate then every time create a new thread and thread will be dies after servlet service work is completed.
JSP support :- There are container is responsible for converting JSP to servlet and they also maintain the servlet.
Declarative security :- Inside the XML type deployment descriptor file, Declarative function is manage security.