Can someone explain the output of the following program:
public class DataRace extends Thread { static ArrayList arr = new ArrayList<>