Which of these is a method of ListIterator used to obtain index of previous element?
A. previous()
B. previousIndex()
C. back()
D. goBack()
Answer:A
Which of these is a method of ListIterator used to obtain index of previous element?
A. previous() B. previousIndex() C. back() D. goBack()
Explanation: previousIndex() returns index of previous element. if there is no previous element then -1 is returned.