Kizspy | Question: 18
(Choose 1 answer)
How can you define a servlet mapping without using web.xml?
A. By using annotations like @WebServlet(urlPatterns = {"/example"}) in the servlet.
B. By configuring servlet mapping in a separate properties file.
C. By defining servlet mappings in the servlet class using the setMapping() method.
D. Servlet mapping without web.xml is not supported.
E. None of the others