Method getServletContextName()
returns the name of the \"web application\". That means, \"ServletContext\" is nothing but \"web application\". Ok.
API defin
ServletContext is interface that contain a set of methods to communicate with its own servlet container.
That allow servlets to gain access to the context for various parts of the server to communicate.
Life Cycle of ServletContext
Every servlet and JSP in the same web application will now has access to this ServletContext. ServletConfig vs ServletContext