Question Locked
Java ArrayList and Multithreading
0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is it possible to encounter a null reference while reading an Arraylist on one thread while another thread is simultaneously adding non null Objects to the Arraylist. Please note, I am considering a scenario, wherein only valid(non null) Objects are being added to the ArrayList.