What is the purpose of the method item()?
A
Returns node after the specified index
B
Returns node before the specified index
C
Returns node at specified index
D
Returns the node following the specified node
Correct Answer: Returns node at specified index
The method item() returns the node at the specified index in a node list. The nodes are sorted as they appear in the source code, and the index starts at 0.A Node object’s collection of child nodes is an example of a NodeList object.