Pregunta de entrevista de Google

What can happen if you modify a List in Java while iterating through it in another thread?

Respuestas de entrevistas

Anónimo

2 nov 2017

concurrentmodificationexception

Anónimo

25 ene 2017

Didn't know the answer so I described what would happen if the Java standard library had not any protections. Actually, Java will throw an Exception. Explained a way Java can recognize the concurrent access and throw the exception. Interviewer explained how Java implements it actually.

3