Multiple choice

Which of the following methods are present in List Interface?

  1. SubList (int startindex, int endindex)

  2. PreviousIndex()

  3. NextIndex()

  4. HasPrevious()

  5. HasMiddle()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct answer. SubList() method is present in the List Interface and it returns a sublist from the startindex to the endindex. So, this is the correct answer.