What Happens If Two Threads Simultaneously Modify Treeset #700
What happens if two threads simultaneously modify TreeSet?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Util Collections Framework - Java Set - Quiz No.1.
What happens if two threads simultaneously modify TreeSet?
ConcurrentModificationException is thrown
Both threads can perform action successfully
FailFastException is thrown
IteratorModificationException is thrown