About Question enthuware.ocpjp.v8.2.1570 :
Posted: Fri Feb 24, 2017 6:26 pm
In the explanation of the question, in one place it reads:
Path getName(int index)
The index parameter is the index of the name element to return... The element that is farthest from the root has index count -1.
In another place it reads:
If you pass a negative index (to Path.getName( ))... java.lang.IllegalArgumentException is thrown.
Don't these two explanations contradict each other?
Path getName(int index)
The index parameter is the index of the name element to return... The element that is farthest from the root has index count -1.
In another place it reads:
If you pass a negative index (to Path.getName( ))... java.lang.IllegalArgumentException is thrown.
Don't these two explanations contradict each other?