What is ServletContext?

ServletContext interface is a window for a servlet to view it’s environment.
A servlet can use this interface to get information such as initialization parameters for the web applicationor servlet container’s version.
Every web application has one and only one ServletContext and is accessible to all active resource of that application.