________ allows you to traverse the collection, access the element, and insert

  • Buffer
  • Enumeration
  • Iterator
  • Stream
The Iterator interface in Java allows you to traverse a collection, access elements, and insert elements in the middle of traversal using the remove() and add() methods. The other options do not provide this functionality.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *