Podcast
Questions and Answers
Which method returns the number of children that a node has?
Which method returns the number of children that a node has?
- getChildCount() (correct)
- getSiblingCount()
- getLeafCount()
- children()
Which method returns a node's parent or null if it has no parent?
Which method returns a node's parent or null if it has no parent?
- getPreviousSibling()
- getNextSibling()
- getParent() (correct)
- isNodeSibling()
Which method returns true if a node is a sibling of the other node?
Which method returns true if a node is a sibling of the other node?
- getPreviousSibling()
- isNodeSibling() (correct)
- getChildCount()
- getNextSibling()
Which method returns the previous sibling of a node in the parent's children array?
Which method returns the previous sibling of a node in the parent's children array?
Which method returns the next sibling of a node in the parent's children array?
Which method returns the next sibling of a node in the parent's children array?