Which of the following lines of code will cause a `Concurren…
Which of the following lines of code will cause a `ConcurrentModificationException`? ListString names = new ArrayList(); names.add(“Alice”); names.add(“Bob”); names.add(“Charlie”); IteratorString iter = names.iterator(); while (iter.hasNext()) { String name = iter.next(); if (name.equals(“Bob”)) { // LINE X } }