I have taken two servlets with the same url pattern :
And I hit below url on the browser :
http://localhost:8080/ServletTest/test1
In such a scenario when the requested url exactly matches 2 or more url patterns, Container traverses through the web.xml and invokes the last matching servlet.