Ask Question
11 March, 10:23

Which of the following is true? a. The ListIterator interface is a subinterface of the Iterator interface b. The ListIterator interface is a superinterface of the Iterator interface c. The ListIterator interface extends the List interface d. None of the above

+5
Answers (1)
  1. 11 March, 12:45
    0
    Option (A) is the correct answer.

    Explanation:

    'Iterator' is an interface that allows to give access to the data member, traverse any collection and remove the data member from the collection. ListIterator interface is used to extend the Iterator interface before it has been used by the user because it is an interface defined in the "Iterator" interface. This line is also said by the option "a" in the question. hence option a is the right answer. Another option is not valid because-

    Option b says that the Iterator interface is defined in the ListIterator interface which is wrong. Option c suggests that the ListIterator interface is defined in the List interface which is also wrong. Option d suggests that the given option is not correct but the option "a" is correct.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which of the following is true? a. The ListIterator interface is a subinterface of the Iterator interface b. The ListIterator interface is ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers