What happens if an Iterator object is active and the underlying collection is updated via collection operations?
What will be an ideal response?
The Iterator object will throw a ConcurrentModificationException. If the exception was not
thrown, then a program may produce unpredictable results if the Iterator object and the collection methods both accessed the
collection.
Computer Science & Information Technology