Given the code fragment:
When the context root is requested http://host:port/context, how does the container resolve this mapping?
A. thirdServlet handles the request.
B. firstServlet handles the request.
C. The container throws an error at startup.
D. secondServlet handles the request.
B is the correct answer – https://stackoverflow.com/questions/4140448/difference-between-and-in-servlet-mapping-url-pattern