Multiple choice general knowledge science & technology

Which of the following tag in web.xml contains the url pattern of the servlet

  1. <servlet>

  2. <servlet-pattern>

  3. <servlet-name>

  4. <servlet-mapping>

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

The tag in web.xml maps a servlet to a URL pattern. It contains (referencing the servlet) and (the path pattern). The tag defines the servlet class and name, and don't contain URL patterns.