Multiple choice technology

which xml file is been used by Web Container as a deployment descriptor to deploy Web Applications?

  1. ejb-jar.xml

  2. Can be any valid xml containing Web Module name

  3. web.xml

  4. config.xml

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The web.xml file is the standard deployment descriptor for Java web applications. It contains configuration information for servlets, filters, listeners, welcome files, and other web application components. The web container reads web.xml during deployment to understand how to initialize and run the application. Option A (ejb-jar.xml) is for EJB modules, and the file must be specifically named web.xml.