Which of the following is NOT true about the Iterator interface in Java?

Last Updated :
Discuss
Comments

Which of the following is NOT true about the Iterator interface in Java?

It allows removing elements during iteration

It works with Set, List, and Queue

It allows backward traversal using previous()

It provides hasNext() and next() methods

Share your thoughts in the comments