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

You might also like to view...

Words with the same meaning

A) Prepositions B) Antonyms C) Synonyms

Computer Science & Information Technology

Rebooting resets the CPU registers.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology