Examveda

When two threads access the same ArrayList object what is the outcome of the program?

A. Both are able to access the object

B. ConcurrentModificationException is thrown

C. One thread is able to access the object and second thread gets Null Pointer exception

D. One thread is able to access the object and second thread will wait till control is passed to the second one

Answer: Option B


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

Join The Discussion

Related Questions on Collections Framework in java