Skip to content
Sharp

Collections · interview question

Which of the following statements about the Iterator interface is true?

Multiple choiceMediumchapter-4-curatedpremiumcollectionsiteration-and-traversal
Choose one answer
Answer and explanation

Correct answer

A. It allows element removal during iteration.

Why

The Iterator interface allows safe element removal during iteration using the remove() method, preventing ConcurrentModificationException.

Test yourself on Collections

A free test with instant, explained results. No account needed.

Start free test
All Collections questions →