Multiple choice technology web technology

In which file do we define a servlet mapping ?

  1. web.xml

  2. servlet.mappings

  3. servlet.xml

  4. Servlet.java

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

The web.xml file is the standard deployment descriptor for Java web applications. It contains servlet mappings, servlet definitions, and other configuration elements. Servlet.mappings and servlet.xml are not standard files.