In which file do we define a servlet mapping ?
-
web.xml
-
servlet.mappings
-
servlet.xml
-
Servlet.java
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.