Home » JAVA Programming » Collections » Question
  1. Which of these is a method of ListIterator used to obtain index of previous element?
    1. back()
    2. previous()
    3. goBack()
    4. previousIndex()
    5. None of these
Correct Option: D

previousIndex() returns index of previous element. if there is no previous element then -1 is returned.



Your comments will be displayed only after manual approval.