Examveda

What happens if two threads simultaneously modify TreeSet?

A. ConcurrentModificationException is thrown

B. Both threads can perform action successfully

C. FailFastException is thrown

D. IteratorModificationException is thrown

Answer: Option A


This Question Belongs to Java Program >> Collections Framework In Java

Join The Discussion

Related Questions on Collections Framework in java