Vidyalelo
Java Programming · Q60

Java Collections Framework

Programming · Java Programming · question 60

Q60

What happens if two threads simultaneously modify TreeSet?

A.
ConcurrentModificationException is thrown
Answer
B.
Both threads can perform action successfully
C.
FailFastException is thrown
D.
IteratorModificationException is thrown

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board