source:
http://www.javaprepare.com/scwd/quests/dd.html
# Which of these is true about deployment descriptors. Select the one correct answer.
1. The order of elements in deployment descriptor is not important. The elements can follow any order.
2. The elements of deployment descriptor are case insensitive.
3. The servlet-mapping element, if defined, must be included within the
servlet element.
4. The web-app element must include the servlet element.
the correct answer is a.
I agree answer A is write according to what was mentioned in the SCWCD hints link,it says
Top level web.xml elements can appear in any order as compared to the servlet 2.3 specification. However, the order still matters within the elements inside the top-level elements - <servlet>, for example.
Now i just tested on
tomcat 6 and it worked fine even if i put servlet-name element after servlet-class.Is this container specific ??
P.s Quick reply needed if possible.
Regards
Sagar.