Java ArrayList and Multithreading - TechRepublic
Question
July 16, 2008 at 01:21 AM
gleferna

Java ArrayList and Multithreading

by gleferna . Updated 18 years ago

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.

This discussion is locked

All Comments