Given a jar file packaged with three web fragments with names X, Y and Z respectively.
Which of the following deployment descriptor, web.xml, snippets correspond to the web fragment
processing orders of X, Y, Z?
(i) <absolute-ordering>
<name>X</name>
<name>Y</name>
<name>Z</name>
</absolute-ordering>
(ii) <absolute-ordering>
<name>X</name>
<name>Y</name>
</absolute-ordering>
(iii) <absolute-ordering>
</others>
<name>Y</name>
<name>Z</name>
</absolute-ordering>
(iv) <absolute-ordering>
<name>X</name>
</others>
<name>Z</name>
</absolute-ordering>
(v) <absolute-ordering>
<name>X</name>
<name>Y</name>
</others>
</absolute-ordering>
A.
(i) only
B.
(i) and (ii)
C.
(i) and (iv)
D.
(i), (iii), (iv) and (v)
Explanation:
http://blogs.oracle.com/swchan/entry/servlet_3_0_web_fragment
D would be correct, but there is a Typo. It should be .For me the right answer is A
C??
D
the correct answer is C
Why C? In absolute ordering you can use ‘others’ too. D