Domanda di colloquio di American Express

What happens when 2 threads try to modify an ArrayList?