Page 1 of 1

What happens if two threads simultaneously modify TreeSet?

Posted: Wed Jul 13, 2022 7:46 pm
by answerhappygod
a) ConcurrentModificationException is thrown
b) Both threads can perform action successfully
c) FailFastException is thrown
d) IteratorModificationException is thrown