Multiple choice technology programming languages

You add web components to a J2EE application in a package called WAR (web application archive). A WAR has a specific hierarchical directory structure. Which directory stores the deployment descriptor for a Web application located in the myapp directory?

  1. myapp/WEB-INF/public_html

  2. myapp/WEB-INF/classes

  3. myapp/WEB-INF

  4. myapp/WEB-INF/lib

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

The WEB-INF directory contains the deployment descriptor (web.xml) and other protected files that should not be directly accessed by clients. The WEB-INF/classes directory holds compiled Java classes, WEB-INF/lib contains JAR libraries, and public_html is not a standard WEB-INF subdirectory.