Multiple choice technology programming languages

Which of the following directories are legal locations for the deployment descriptor file? Note that all paths are shown as from the root of the machine or drive. (Choose two.)

  1. /WEB-INF

  2. /appserverInstallDirectory/webapps/webappName/WEB-INF/xml

  3. /appserverInstallDirectory/webapps/webappName/WEB-INF

  4. /appserverInstallDirectory/webapps/webappName/WEB-INF/classes

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

According to the servlet specification, web.xml must be in the WEB-INF directory of the web application. This is specified either relative to the web app root (/WEB-INF) or as an absolute path within the application server's webapps directory structure.