Web.xml describes deploy codes for web applications, details everything like descriptions configuration of Servlet, Session handling, limits and parameters for startup and all other files.

Directory of extension name or name for web.xml file can not be changed and only web.xml file is identified to at run-time by container.

It is stored in Web-INF folder.