MCQOPTIONS
Saved Bookmarks
| 1. |
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» C. One thread is able to access the object and second thread gets Null Pointer exception | |