1.

When two threads access the same ArrayList object what is the outcome of 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 second one
Answer» C. One thread is able to access the object and second thread gets Null Pointer exception


Discussion

No Comment Found